ó
öĀ\c           @   s   d  Z  d d l m Z y d d l m Z e Z Wn e k
 rI e Z n Xd e	 f d     YZ
 d e
 f d     YZ d e
 e f d	     YZ d
   Z d S(   sĖ   
    sphinx.util.stemmer
    ~~~~~~~~~~~~~~~~~~~

    Word stemming utilities for Sphinx.

    :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
iĸĸĸĸ(   t   PorterStemmer(   t   Stemmert   BaseStemmerc           B   s   e  Z d    Z RS(   c         C   s   t     d  S(   N(   t   NotImplementedError(   t   selft   word(    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyt   stem   s    (   t   __name__t
   __module__R   (    (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyR      s   t	   PyStemmerc           B   s   e  Z d    Z d   Z RS(   c         C   s   t  d  |  _ d  S(   Nt   porter(   t
   _PyStemmert   stemmer(   R   (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyt   __init__   s    c         C   s   |  j  j |  S(   N(   R   t   stemWord(   R   R   (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyR       s    (   R   R   R   R   (    (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyR	      s   	t   StandardStemmerc           B   s   e  Z d  Z d   Z RS(   sd   All those porter stemmer implementations look hideous;
    make at least the stem method nicer.
    c         C   s    t  j |  | d t |  d  S(   Ni    i   (   R    R   t   len(   R   R   (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyR   )   s    (   R   R   t   __doc__R   (    (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyR   %   s   c           C   s   t  r t   St   Sd  S(   N(   t	   PYSTEMMERR	   R   (    (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyt   get_stemmer.   s    N(   R   t   sphinx.util.stemmer.porterR    R   R   t   TrueR   t   ImportErrort   Falset   objectR   R	   R   R   (    (    (    s;   lib/python2.7/site-packages/sphinx/util/stemmer/__init__.pyt   <module>
   s   


	