class documentation

The English Snowball stemmer.

Note
A detailed description of the English stemming algorithm can be found under http://snowball.tartarus.org/algorithms/english/stemmer.html
Method stem Stem an English word and return the stemmed form.
Class Variable __double_consonants The English double consonants.
Class Variable __li_ending Letters that may directly appear before a word final 'li'.
Class Variable __special_words A dictionary containing words which have to be stemmed specially.
Class Variable __step0_suffixes Suffixes to be deleted in step 0 of the algorithm.
Class Variable __step1a_suffixes Suffixes to be deleted in step 1a of the algorithm.
Class Variable __step1b_suffixes Suffixes to be deleted in step 1b of the algorithm.
Class Variable __step2_suffixes Suffixes to be deleted in step 2 of the algorithm.
Class Variable __step3_suffixes Suffixes to be deleted in step 3 of the algorithm.
Class Variable __step4_suffixes Suffixes to be deleted in step 4 of the algorithm.
Class Variable __step5_suffixes Suffixes to be deleted in step 5 of the algorithm.
Class Variable __vowels The English vowels.

Inherited from _StandardStemmer:

Method _r1r2_standard Return the standard interpretations of the string regions R1 and R2.
Method _rv_standard Return the standard interpretation of the string region RV.

Inherited from _LanguageSpecificStemmer (via _StandardStemmer):

Method __init__ Undocumented
Method __repr__ Print out the string representation of the respective class.
Instance Variable stopwords Undocumented
def stem(self, word): (source)

Stem an English word and return the stemmed form.

Parameters
word:str or unicodeThe word that is stemmed.
Returns
unicodeThe stemmed form.
__double_consonants: tuple = (source)

The English double consonants.

__li_ending: unicode = (source)

Letters that may directly appear before a word final 'li'.

__special_words: dict = (source)

A dictionary containing words which have to be stemmed specially.

__step0_suffixes: tuple = (source)

Suffixes to be deleted in step 0 of the algorithm.

__step1a_suffixes: tuple = (source)

Suffixes to be deleted in step 1a of the algorithm.

__step1b_suffixes: tuple = (source)

Suffixes to be deleted in step 1b of the algorithm.

__step2_suffixes: tuple = (source)

Suffixes to be deleted in step 2 of the algorithm.

__step3_suffixes: tuple = (source)

Suffixes to be deleted in step 3 of the algorithm.

__step4_suffixes: tuple = (source)

Suffixes to be deleted in step 4 of the algorithm.

__step5_suffixes: tuple = (source)

Suffixes to be deleted in step 5 of the algorithm.

__vowels: unicode = (source)

The English vowels.