My problem: I want to check if the provided word is a common English word. I'm using pyenchant currently to see if a word is an actual word but I can't find a function in it that returns the frequency of a word/if it's a common word.
Example code:
import enchant
eng_dict = enchant.Dict("en_US")
words = ['hello', 'world', 'thisisntaword', 'anachronism']
good_words = []
for word in words:
if eng_dict.check(word): # currently this checks if it's an english word, but I also want it to check it it's commonly used word
good_words.append(word)
print(good_words)
What it returns as is: ['hello', 'world', 'anachronism']
. What I want it to return:['hello', 'world']
because anachronism is obviously not a common word.
Any solutions my problem?