diff --git a/main.py b/main.py index 2cd64c2..59e60ad 100644 --- a/main.py +++ b/main.py @@ -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)