Commit c20d8f5f authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] unused imports and indentation of comments.

parent 9e1c9fbb
......@@ -17,13 +17,13 @@ module Gargantext.Core
------------------------------------------------------------------------
-- | Language of a Text
-- For simplicity, we suppose text has an homogenous language
data Lang = EN | FR
-- | DE | IT | SP
-- > EN == english
-- > FR == french
-- > DE == deutch (not implemented yet)
-- > IT == italian (not implemented yet)
-- > SP == spanish (not implemented yet)
-- > ... add your language and help us to implement it (:
data Lang = EN | FR
-- | DE | IT | SP
-- EN == english
-- FR == french
-- DE == deutch (not implemented yet)
-- IT == italian (not implemented yet)
-- SP == spanish (not implemented yet)
-- ... add your language and help us to implement it (:
......@@ -17,7 +17,7 @@ Adapted from:
{-# LANGUAGE NoImplicitPrelude #-}
module Gargantext.Text.Ngrams.Stem.En
module Gargantext.Text.Ngrams.Stem.En (stem)
where
import Control.Monad
......@@ -203,14 +203,14 @@ stem' :: [Char] -> [Char]
stem' s | length s < 3 = s
| otherwise = allSteps s
fixpoint :: Eq t => (t -> t) -> t -> t
fixpoint f x = let fx = f x in
if fx == x
then x
else fixpoint f fx
fixstem :: [Char] -> [Char]
fixstem = fixpoint stem'
--fixpoint :: Eq t => (t -> t) -> t -> t
--fixpoint f x = let fx = f x in
-- if fx == x
-- then x
-- else fixpoint f fx
--
--fixstem :: [Char] -> [Char]
--fixstem = fixpoint stem'
{-
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment