o $•a#ã@s~dZddlmZz ddlmZdZWn eydZYnwGdd„dƒZGdd „d eƒZGd d „d eeƒZ d efd d„Z dS)zÌ sphinx.util.stemmer ~~~~~~~~~~~~~~~~~~~ Word stemming utilities for Sphinx. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. é)Ú PorterStemmer)ÚStemmerTFc@seZdZdedefdd„ZdS)Ú BaseStemmerÚwordÚreturncCstƒ‚©N)ÚNotImplementedError©Úselfr©r ú>/usr/lib/python3/dist-packages/sphinx/util/stemmer/__init__.pyÚstemszBaseStemmer.stemN)Ú__name__Ú __module__Ú __qualname__Ústrr r r r r rsrc@s(eZdZddd„Zdedefdd„ZdS) Ú PyStemmerrNcCstdƒ|_dS)NÚporter)Ú _PyStemmerÚstemmer)r r r r Ú__init__szPyStemmer.__init__rcCs |j |¡Sr)rÚstemWordr r r r r s zPyStemmer.stem)rN)rrrrrr r r r r rs rcs*eZdZdZdedef‡fdd„ Z‡ZS)ÚStandardStemmerzdAll those porter stemmer implementations look hideous; make at least the stem method nicer. rrcstƒ |dt|ƒd¡S)Nré)Úsuperr Úlenr ©Ú __class__r r r %szStandardStemmer.stem)rrrÚ__doc__rr Ú __classcell__r r rr r!srrcCstrtƒStƒSr)Ú PYSTEMMERrrr r r r Ú get_stemmer)sr!N) rÚsphinx.util.stemmer.porterrrrr Ú ImportErrorrrrr!r r r r Ús   ÿ