with open('english_words.txt') as word_file:
    english_words = set(word.strip().lower() for word in word_file)

def is_english_word(word):
    return word.lower() in english_words
How to check if a word is an English word with Python?