1 module Gargantext.Ngrams.List where
4 import Data.List (filter)
5 import Gargantext.Ngrams
6 import Gargantext.Prelude
8 graph :: [Ngrams] -> [Ngrams]
9 graph ngs = filter (\ng -> _ngramsListName ng == Just Graph) ngs
11 candidates :: [Ngrams] -> [Ngrams]
12 candidates ngs = filter (\ng -> _ngramsListName ng == Just Candidate) ngs
14 stop :: [Ngrams] -> [Ngrams]
15 stop ngs = filter (\ng -> _ngramsListName ng == Just Stop) ngs