Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Language.Lojban.Canonicalization.Internals
Synopsis
- type StructuredSelbri = Text
- type StructuredTerm = Text
- type ExtraTerm = Text
- type StructuredBridi = (StructuredSelbri, [(Int, StructuredTerm)], [ExtraTerm])
- normalizeText :: Text -> Text
- canonicalizeText :: SentenceCanonicalizer
- canonicalizeParsedText :: (Free, Text, Terminator) -> Either String Text
- canonicalizeParsedBridi :: (Free, Text, Terminator) -> Either String Text
- canonicalizeParsedTerm :: (Free, Text, Terminator) -> Either String Text
- retrieveSimpleBridi :: (Free, Text, Terminator) -> Either String SimpleBridi
- extractSimpleBridi :: Text -> Either String SimpleBridi
- retrieveStructuredBridi :: Text -> Either String StructuredBridi
Documentation
type StructuredSelbri = Text Source #
type StructuredTerm = Text Source #
type StructuredBridi = (StructuredSelbri, [(Int, StructuredTerm)], [ExtraTerm]) Source #
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.
retrieveSimpleBridi :: (Free, Text, Terminator) -> Either String SimpleBridi Source #
retrieveStructuredBridi :: Text -> Either String StructuredBridi Source #