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

Study.Framework.Lojban.Extractors

Description

This module provides utilities for extracting a desired entity from a broader one.

Synopsis

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.