Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Study.Framework.Lojban.ExerciseGenerators
Description
This module provides utilities for constructing exercise generators.
Synopsis
- generateTranslationExercise :: SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator
- generateTranslationExerciseWithCustomTitle :: Text -> SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator
- generateBlacklistedWordTranslationExercise :: Text -> SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator
- generateRestrictedTranslationExercise :: Text -> (Text -> Bool) -> SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator
- generateMorphologicalClassExercise :: Vocabulary -> ExerciseGenerator
- generateEnglishOrLojbanBridiJufraExercise :: SimpleBridiGenerator -> TextGenerator -> SimpleBridiDisplayer -> ExerciseGenerator
- generateLojbanBridiJufraExercise :: SimpleBridiGenerator -> TextGenerator -> SimpleBridiDisplayer -> ExerciseGenerator
- generateEnglishBridiJufraExercise :: ExerciseGenerator
- generateFillingBlanksExerciseByAlternatives :: [Text] -> TranslationGenerator -> ExerciseGenerator
- generateContextualizedFillingBlanksExerciseByAlternatives :: [Text] -> TranslationGenerator -> ExerciseGenerator
- generateFillingBlanksExerciseByExpression :: TranslationGeneratorByExpression -> ExerciseGenerator
- generateSelbriIdentificationExercise :: SimpleBridiGenerator -> SimpleBridiDisplayer -> ExerciseGenerator
- generateContextualizedGismuPlacePositionExercise :: Dictionary -> SimpleBridiGenerator -> SimpleBridiDisplayer -> ExerciseGenerator
- generateContextualizedGismuPlaceMeaningExercise :: Dictionary -> SimpleBridiGenerator -> SimpleBridiDisplayer -> ExerciseGenerator
- generateIsolatedBrivlaPlacesExercise :: Dictionary -> [Text] -> ExerciseGenerator
- generateLexiconProvidingExercise :: Text -> Dictionary -> WordGenerator -> ExerciseGenerator
- generateLexiconChoosingExercise :: Text -> Dictionary -> [Text] -> ExerciseGenerator
- generateBasicNumberExercise :: Integer -> ExerciseGenerator
Documentation
generateTranslationExercise :: SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator Source #
Exercise: translate a given sentence into Lojban.
Example: https://github.com/jqueiroz/lojban.io/blob/master/docs/exercises/examples/translation.jpg
generateTranslationExerciseWithCustomTitle :: Text -> SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator Source #
Exercise: translate a given sentence into Lojban (with a custom title).
Example: https://github.com/jqueiroz/lojban.io/blob/master/docs/exercises/examples/translation.jpg
generateBlacklistedWordTranslationExercise :: Text -> SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator Source #
Exercise: translate a given sentence into Lojban, with the restriction that a particular Lojban word cannot be used.
generateRestrictedTranslationExercise :: Text -> (Text -> Bool) -> SentenceCanonicalizer -> SentenceComparer -> TranslationGenerator -> ExerciseGenerator Source #
Exercise: translate a given sentence into Lojban, with some arbitrary (algorithmically specified) restriction concerning the user's solution.
generateMorphologicalClassExercise :: Vocabulary -> ExerciseGenerator Source #
Exercise: tell morphological class of a word (brivla, cmavo, or cmevla).
generateEnglishOrLojbanBridiJufraExercise :: SimpleBridiGenerator -> TextGenerator -> SimpleBridiDisplayer -> ExerciseGenerator Source #
Exercise: decide whether an utterance (in either English or Lojban) is a bridi or merely a jufra.
generateLojbanBridiJufraExercise :: SimpleBridiGenerator -> TextGenerator -> SimpleBridiDisplayer -> ExerciseGenerator Source #
Exercise: decide whether a Lojban utterance is a bridi or merely a jufra.
generateEnglishBridiJufraExercise :: ExerciseGenerator Source #
Exercise: decide whether an English utterance is a bridi or merely a jufra.
generateFillingBlanksExerciseByAlternatives :: [Text] -> TranslationGenerator -> ExerciseGenerator Source #
Exercise: fill in the blanks (by alternatives) Expects a translation generator whose resulting sentences contain precisely one of the alternatives.
generateContextualizedFillingBlanksExerciseByAlternatives :: [Text] -> TranslationGenerator -> ExerciseGenerator Source #
generateFillingBlanksExerciseByExpression :: TranslationGeneratorByExpression -> ExerciseGenerator Source #
Exercise: fill in the blanks (by expression)
generateSelbriIdentificationExercise :: SimpleBridiGenerator -> SimpleBridiDisplayer -> ExerciseGenerator Source #
generateContextualizedGismuPlacePositionExercise :: Dictionary -> SimpleBridiGenerator -> SimpleBridiDisplayer -> ExerciseGenerator Source #
generateContextualizedGismuPlaceMeaningExercise :: Dictionary -> SimpleBridiGenerator -> SimpleBridiDisplayer -> ExerciseGenerator Source #
generateLexiconProvidingExercise :: Text -> Dictionary -> WordGenerator -> ExerciseGenerator Source #
generateLexiconChoosingExercise :: Text -> Dictionary -> [Text] -> ExerciseGenerator Source #