/porterstemmer

Elm implementation of the classical Porter Stemming-algorithm.

Primary LanguageElmMIT LicenseMIT

PorterStemmer

Elm implementation of the classical Porter Stemming-algorithm. The algorithm is described in this paper and on Wikipedia. The implementation is inspired by the JavaScript- and the Haskell-implementation.

The module exposes a single function.

stem

The stem-function takes a word and returns its stem.

stem "sky" == "sky"
stem "hopefulness" == "hope"