Safe Haskell | None |
---|
The module provides functions for dictionary-driven analysis of the input text.
- data Token = Token {}
- data Other
- tokenize :: Text -> [Either Text Other]
- rmHyphen :: Text -> Text
- anaWord :: HistPL -> Text -> IO Token
- mapL :: (Functor m, Monad m) => (a -> m a') -> [Either a b] -> m [Either a' b]
- data JConf = JConf {}
- data ShowCont
- = NoShowCont
- | ShowCont
- | ForceShowCont
- defaultJConf :: JConf
- jsonAna :: JConf -> [Either Token Other] -> Value
Tokenization
A token is an element of the analysis result.
tokenize :: Text -> [Either Text Other]Source
Perform simple tokenization -- spaces and punctuation characters are treated as token ending markers.
Analysis
mapL :: (Functor m, Monad m) => (a -> m a') -> [Either a b] -> m [Either a' b]Source
Map the monadic function over the left elements of the input list.
JSON
JSON serialization configuration. Depending on the configuration, different parts of the result will be converted to a JSON format.
When contemporary interpretations should be shown.
Default JSON serialization configuration.