Bindings to the Snowball library.
- data Algorithm
- stem :: Algorithm -> Text -> Text
- stems :: Algorithm -> [Text] -> [Text]
- data Stemmer
- newStemmer :: Algorithm -> IO Stemmer
- stemWith :: Stemmer -> Text -> IO Text
- stemsWith :: Stemmer -> [Text] -> IO [Text]
Snowball algorithm used for stemming words.
Compute the stem of a word using the specified algorithm.
stem English "fantastically""fantast"
Compute the stems of several words in one go. This can be more
because it uses a single
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.