-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Haskell bindings to the Snowball stemming library. -- -- Haskell bindings to the Snowball stemming library. @package stemmer @version 0.1 -- | Haskell bindings for the Snowball stemming library module NLP.Stemmer -- | Create a new stemmer instance. When you're done using the stemmer, you -- should delete it new :: Algorithm -> IO Stemmer -- | Delete a stemmer instance. Don't use it after deleting. delete :: Stemmer -> IO () -- | Stem a word using the stemmer instance. stem :: Stemmer -> String -> IO String -- | Unsafe stemming, use with care. unsafeStem :: Stemmer -> String -> String -- | Algorithms to create a stemmer instance for data Algorithm Danish :: Algorithm Dutch :: Algorithm English :: Algorithm Finnish :: Algorithm French :: Algorithm German :: Algorithm Hungarian :: Algorithm Italian :: Algorithm Norwegian :: Algorithm Portuguese :: Algorithm Romanian :: Algorithm Russian :: Algorithm Spanish :: Algorithm Swedish :: Algorithm Turkish :: Algorithm Porter :: Algorithm -- | Pointer to a stemmer instance type Stemmer = Ptr StemmerStruct instance Show Algorithm