Portability | Haskell2010 |
---|---|
Safe Haskell | Trustworthy |
Bindings to the Snowball library.
Pure interface
Snowball algorithm used for stemming words.
stem :: Algorithm -> Text -> TextSource
Compute the stem of a word using the specified algorithm.
>>>
stem English "fantastically"
"fantast"
stems :: Algorithm -> [Text] -> [Text]Source
Compute the stems of several words in one go. This can be more
efficient than
because it uses a single map
stem
Stemmer
instance, however the map
version is rewritten to use this function
with a rewrite rule. You can still use this function though if you
want to make sure it is used or if you find it more convenient.