Enha: remove gerunds

This commit is contained in:
Grail Finder
2025-06-19 06:27:39 +03:00
parent a12a2f4385
commit 1ddfe4e98e
3 changed files with 5633 additions and 0 deletions

View File

@ -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)