Enha: remove gerunds
This commit is contained in:
2026
adjectives_10.txt
Normal file
2026
adjectives_10.txt
Normal file
File diff suppressed because it is too large
Load Diff
2
main.py
2
main.py
@ -45,6 +45,8 @@ def get_words():
|
|||||||
if pos == 'n':
|
if pos == 'n':
|
||||||
# Use WordNet's morphy to get base form
|
# Use WordNet's morphy to get base form
|
||||||
base_form = wn.morphy(word, pos='n')
|
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 matches the word, it's singular/uncountable
|
||||||
if base_form == word:
|
if base_form == word:
|
||||||
nouns.add(word)
|
nouns.add(word)
|
||||||
|
3605
nouns_10.txt
Normal file
3605
nouns_10.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user