def parse_festival_dict(festival_location):
    """For OALD; yields word,part-of-speech,pronunciation"""
    ret = []
    for line in open(festival_location):
        line = line.strip()
        if '((pos' in line:
            line = line[:line.index('((pos')]
        if line.startswith('( "'):
            line = line[3:]
        line = line.replace('"', '').replace('(', '').replace(')', '')
        try:
            word, pos, pronunc = line.split(None, 2)
        except ValueError:
            continue
        if pos not in ['n', 'v', 'a', 'cc', 'dt', 'in', 'j', 'k', 'nil',
            'prp', 'uh']:
            continue
        yield word.lower(), pos, pronunc
