
    '[fw                     ,    d dl mZ  G d d          ZdS )    )wordnetc                   .    e Zd ZdZd	dededefdZd ZdS )
WordNetLemmatizera  
    WordNet Lemmatizer

    Lemmatize using WordNet's built-in morphy function.
    Returns the input word unchanged if it cannot be found in WordNet.

        >>> from nltk.stem import WordNetLemmatizer
        >>> wnl = WordNetLemmatizer()
        >>> print(wnl.lemmatize('dogs'))
        dog
        >>> print(wnl.lemmatize('churches'))
        church
        >>> print(wnl.lemmatize('aardwolves'))
        aardwolf
        >>> print(wnl.lemmatize('abaci'))
        abacus
        >>> print(wnl.lemmatize('hardrock'))
        hardrock
    nwordposreturnc                 `    t          j        ||          }|rt          |t                    n|S )a  Lemmatize `word` using WordNet's built-in morphy function.
        Returns the input word unchanged if it cannot be found in WordNet.

        :param word: The input word to lemmatize.
        :type word: 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
        :return: The lemma of `word`, for the given `pos`.
        )key)wn_morphyminlen)selfr   r   lemmass       E/var/www/piapp/venv/lib/python3.11/site-packages/nltk/stem/wordnet.py	lemmatizezWordNetLemmatizer.lemmatize!   s2     D#&&'-7s6s####47    c                     dS )Nz<WordNetLemmatizer> )r   s    r   __repr__zWordNetLemmatizer.__repr__0   s    $$r   N)r   )__name__
__module____qualname____doc__strr   r   r   r   r   r   r      s[         (8 8c 8 8c 8 8 8 8% % % % %r   r   N)nltk.corpusr   r   r   r   r   r   <module>r      sK    & % % % % %%% %% %% %% %% %% %% %% %% %%r   