Stemmer is an english language stemmer, this is an Elm implementation of the PorterStemmer taken from http://tartarus.org/~martin.
Copyright (c) 2016 Robin Luiten
Inspired by Erlang implementation on http://tartarus.org/~martin/PorterStemmer/index.html.
stem : String -> String
Get the porter stem of a word.
Some examples and what running them produces
Stemmer.stem "fullness" -- produces "full"
Stemmer.stem "consign" -- produces "consign"
Stemmer.stem "consigned" -- produces "consign"
Stemmer.stem "consigning" -- produces "consign"
Stemmer.stem "consignment" -- produces "consign"
Stemmer.stem "knot" -- produces "knot"
Stemmer.stem "knots" -- produces "knot"
Step numbers follow general implementation in porter stemmer implementations.
Identifier names were adopted from elrang implementation.