- After checking the code (
_morphy() ), which generates possible analyzes for the given word, I found that there is no rule included in ss . Bos also a basic form in wordnet.
Replacement Rules:
MORPHOLOGICAL_SUBSTITUTIONS = { NOUN: [('s', ''), ('ses', 's'), ('ves', 'f'), ('xes', 'x'), ('zes', 'z'), ('ches', 'ch'), ('shes', 'sh'), ('men', 'man'), ('ies', 'y')], VERB: [('s', ''), ('ies', 'y'), ('es', 'e'), ('es', ''), ('ed', 'e'), ('ed', ''), ('ing', 'e'), ('ing', '')], ADJ: [('er', ''), ('est', ''), ('er', 'e'), ('est', 'e')], ADV: []}
Call print wnl.lemmatize("boss", "n") :
Since a suitable base form ( Bos ) can be found by applying the substitution rules, it is returned. If this were not included in wordnet, then the lemma for boss would be boss , since a shorter form cannot be found.