stemmer-0.1: Haskell bindings to the Snowball stemming library.

NLP.Stemmer

Description

Haskell bindings for the Snowball stemming library

Synopsis

Documentation

new :: Algorithm -> IO StemmerSource

Create a new stemmer instance. When you're done using the stemmer, you should delete it

delete :: Stemmer -> IO ()Source

Delete a stemmer instance. Don't use it after deleting.

stem :: Stemmer -> String -> IO StringSource

Stem a word using the stemmer instance.

unsafeStem :: Stemmer -> String -> StringSource

Unsafe stemming, use with care.

data Algorithm Source

Algorithms to create a stemmer instance for

Instances

type Stemmer = Ptr StemmerStructSource

Pointer to a stemmer instance