lojbanios-0.1.0.0: Lojban teaching platform
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.Lojban.Canonicalization

Synopsis

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.