Commit 78a4e5ef authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] isStopTerm.

parent 99bfb3cf
...@@ -111,6 +111,11 @@ toTermList stop ns = map (toTermList' stop CandidateTerm) xs ...@@ -111,6 +111,11 @@ toTermList stop ns = map (toTermList' stop CandidateTerm) xs
isStopTerm :: Text -> Bool isStopTerm :: Text -> Bool
isStopTerm x = Text.length x < 3 isStopTerm x = Text.length x < 3
|| not (all Char.isAlpha (Text.unpack x)) || not (all Char.isAlpha (Text.unpack x'))
where
x' = ( Text.replace "-" ""
. Text.replace " " ""
. Text.replace "/" ""
) x
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