Feat: skip s words

This commit is contained in:
Grail Finder
2025-06-19 07:55:54 +03:00
parent 1ddfe4e98e
commit 7dea19dcad

View File

@ -45,8 +45,10 @@ 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"):
if word.endswith("ing"): # possibly remove all words ending with s ( a lot of abstract words and plurals got in)
continue # winning, twisiting; only want win, twist or feelings
if word.endswith("s") and not word.endswith("ss"):
continue # leave dutschess but skip provisions
# If base form matches the word, it's singular/uncountable
if base_form == word:
nouns.add(word)