class pclTextBox::Stemmer

sys::Obj
  pclTextBox::Stemmer

Stemming algorithms are used to remove common endings from words to return a "stem".

porter

static Str porter(Str word)

Porter stemming is a popular stemming algorithm used for English.

For a complete description, see: https://tartarus.org/martin/PorterStemmer/

Algorithm published in Porter, 1980, "An algorithm for suffix stripping," Program, Vol. 14, no. 3, pp 130-137.

An error is raised if the word does not consist entirely of ASCII characters. This is because the Porter stemmer is designed for English.