View Source Needlepoint.Stem.SnowballStemmer (Needlepoint v0.1.0)

A port of the NLTK version of the snowball stemmer, as described at http://snowball.tartarus.org/algorithms/english/stemmer.html

If calling this directly instead of from Needlepoint.stem the word given to stem should be lowercased or else special word and stop words will be stemmed instead of returned.

Link to this section Summary

Functions

Stem the word with the snowball stemmer. Currently there is no option to ignore stopwords like the nltk version.

Link to this section Functions

Stem the word with the snowball stemmer. Currently there is no option to ignore stopwords like the nltk version.

examples

Examples

iex> alias Needlepoint.Stem.SnowballStemmer

iex> SnowballStemmer.stem("running")
"run"

iex> SnowballStemmer.stem("abeyance")
"abey"