Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.Lojban.Canonicalization
Documentation
basicSentenceCanonicalizer :: SentenceCanonicalizer Source #
Basic general-purpose sentence canonicalizer.
extendedSentenceCanonicalizer :: SentenceCanonicalizer Source #
Simple extension of basicSentenceCanonicalizer
which disregards (potentially important) semantic variations.
Currently, all it does is replace "da", "de", and "di" with "zo'e", essentially treating all these quantifiers as the equivalent.
normalizeText :: Text -> Text Source #
Normalizes the text prior to parsing.
Useful for performing dirty hacks, such as blindly replacing "be fi" with "be zo'e bei, until canonicalization of the corresponding construct is properly implement using the parse tree.