class documentation

The Spanish Snowball stemmer.

Note
A detailed description of the Spanish stemming algorithm can be found under http://snowball.tartarus.org/algorithms/spanish/stemmer.html
Method stem Stem a Spanish word and return the stemmed form.
Method __replace_accented Replaces all accented letters on a word with their non-accented counterparts.
Class Variable __step0_suffixes Suffixes to be deleted in step 0 of the algorithm.
Class Variable __step1_suffixes Suffixes to be deleted in step 1 of the algorithm.
Class Variable __step2a_suffixes Suffixes to be deleted in step 2a of the algorithm.
Class Variable __step2b_suffixes Suffixes to be deleted in step 2b of the algorithm.
Class Variable __step3_suffixes Suffixes to be deleted in step 3 of the algorithm.
Class Variable __vowels The Spanish 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 a Spanish word and return the stemmed form.

Parameters
word:str or unicodeThe word that is stemmed.
Returns
unicodeThe stemmed form.
def __replace_accented(self, word): (source)

Replaces all accented letters on a word with their non-accented counterparts.

Parameters
word:str or unicodeA spanish word, with or without accents
Returns
str or unicodea word with the accented letters (á, é, í, ó, ú) replaced with their non-accented counterparts (a, e, i, o, u)
__step0_suffixes: tuple = (source)

Suffixes to be deleted in step 0 of the algorithm.

__step1_suffixes: tuple = (source)

Suffixes to be deleted in step 1 of the algorithm.

__step2a_suffixes: tuple = (source)

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

__step2b_suffixes: tuple = (source)

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

__step3_suffixes: tuple = (source)

Suffixes to be deleted in step 3 of the algorithm.

__vowels: unicode = (source)

The Spanish vowels.