import re


def get_words_from_txt_file(txt_path: str) -> list:
    """ Return list of words from txt file at specified path """

    words = []

    with open(txt_path, encoding='utf-8') as file:

        for line in file:
            try:
                for word in line.split():
                    words.append(word.lower())
            except (UnicodeError, UnicodeDecodeError) as _:
                pass

    str_words = ' '.join(map(str, words))

    return re.findall(r'\w+', str_words)