{-| Module : Gargantext.Text.Ngrams.Lists Description : Copyright : (c) CNRS, 2017-Present License : AGPL + CECILL v3 Maintainer : team@gargantext.org Stability : experimental Portability : POSIX Here is a longer description of this module, containing some commentary with @some markup@. -} {-# LANGUAGE NoImplicitPrelude #-} module Gargantext.Text.Ngrams.Lists where --import Data.Maybe --import Data.List (filter) --import Gargantext.Text import Gargantext.Prelude -- data ListName = Stop | Candidate | Graph deriving (Show, Eq) --graph :: [Ngrams] -> [Ngrams] --graph ngs = filter (\ng -> _ngramsListName ng == Just Graph) ngs -- --candidates :: [Ngrams] -> [Ngrams] --candidates ngs = filter (\ng -> _ngramsListName ng == Just Candidate) ngs -- --stop :: [Ngrams] -> [Ngrams] --stop ngs = filter (\ng -> _ngramsListName ng == Just Stop) ngs