From e2d368e00ef806121aaa39f6e5f90d9f8243631b Mon Sep 17 00:00:00 2001 From: Ron U Date: Thu, 28 Sep 2023 11:36:01 +0300 Subject: [PATCH] minor fix for wordnet lemmatization pos param documentation (#3190) --- AUTHORS.md | 1 + nltk/stem/wordnet.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index e28d5a156c..b1bf749ea7 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -297,6 +297,7 @@ - Steven Thomas Smith - Jan Lennartz - Tim Sockel +- Ron Urbach ## Others whose work we've taken and included in NLTK, but who didn't directly contribute it: diff --git a/nltk/stem/wordnet.py b/nltk/stem/wordnet.py index 6cc20821f8..c9a88cc9ea 100644 --- a/nltk/stem/wordnet.py +++ b/nltk/stem/wordnet.py @@ -39,7 +39,7 @@ def lemmatize(self, word: str, pos: str = "n") -> str: :param pos: The Part Of Speech tag. Valid options are `"n"` for nouns, `"v"` for verbs, `"a"` for adjectives, `"r"` for adverbs and `"s"` for satellite adjectives. - :param pos: str + :type pos: str :return: The lemma of `word`, for the given `pos`. """ lemmas = wn._morphy(word, pos)