Enha: remove gerunds
This commit is contained in:
2
main.py
2
main.py
@ -45,6 +45,8 @@ def get_words():
|
||||
if pos == 'n':
|
||||
# Use WordNet's morphy to get base form
|
||||
base_form = wn.morphy(word, pos='n')
|
||||
if word.endswith("ing"):
|
||||
continue # winning, twisiting; only want win, twist or feelings
|
||||
# If base form matches the word, it's singular/uncountable
|
||||
if base_form == word:
|
||||
nouns.add(word)
|
||||
|
Reference in New Issue
Block a user