def read_wordlist(filename: str):
    """Return words from a wordlist file."""
    with open(filename, encoding='utf-8') as wordlist_file:
        for row in iter(wordlist_file):
            row = row.strip()
            if row != '':
                yield row
