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

Study.Courses.English.Vocabulary.Attitudinals.Util

Description

This module defines utility functions for the course.

Synopsis

Documentation

randomlyPickAttitudinalModifier Source #

Arguments

:: StdGen

A random number generator.

-> Attitudinal

An attitudinal.

-> (Text, Text, StdGen)

A tuple consisting of

  1. the selected attitudinal modifier;
  2. the meaning of the corresponding modified attitudinal; and
  3. a new random number generator.

Randomly picks one of the available modifiers for a given attitudinal (among "", "cu'i" and "nai").

randomlyPickAttitudinalMeaning :: StdGen -> Attitudinal -> (Text, StdGen) Source #

Randomly picks one of the available meanings for a given attitudinal (positive, neutral or negative).