2 Module : Gargantext.Text.Ngrams.Stem
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
10 Here is a longer description of this module, containing some
11 commentary with @some markup@.
15 module Gargantext.Text.Ngrams.Stem
18 import Data.Text (Text)
19 import qualified Data.Text as DT
20 import qualified NLP.Stemmer as N
22 import Gargantext.Core (Lang(..))
24 -- (stem, Stemmer(..))
26 --import Language.Aspell (check, suggest, spellChecker, spellCheckerWithOptions)
27 --import Language.Aspell.Options (ACOption(..))
29 stem :: Lang -> Text -> Text
30 stem lang = DT.pack . N.stem lang' . DT.unpack