Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Study.Framework.Lojban.Extractors
Description
This module provides utilities for extracting a desired entity from a broader one.
Synopsis
- extractTrivialBridiGeneratorFromVocabulary :: Vocabulary -> SimpleBridiGenerator
- extractSimpleBridiGeneratorFromTranslationGenerator :: TranslationGenerator -> SimpleBridiGenerator
- extractLojbanSentencesFromTranslationGenerator :: TranslationGenerator -> TextGenerator
- extractLojbanSentencesFromTranslation :: Translation -> [Text]
Documentation
extractTrivialBridiGeneratorFromVocabulary :: Vocabulary -> SimpleBridiGenerator Source #
Produces trivial bridi (i.e. bridi with no sumti) from the vocabulary.
extractSimpleBridiGeneratorFromTranslationGenerator :: TranslationGenerator -> SimpleBridiGenerator Source #
Extracts a SimpleBridi among the sentences included in the translation generator.
Warning: the translation generator must consist solely of parsable sentences, otherwise this function will yield an error upon encountering a non-parsable sentence.
extractLojbanSentencesFromTranslationGenerator :: TranslationGenerator -> TextGenerator Source #
Extracts a Lojban sentence among those included in the translation generator.
extractLojbanSentencesFromTranslation :: Translation -> [Text] Source #
Extracts the list of Lojban sentences from the translation.