GenI-0.23.20130212: A natural language generator (specifically, an FB-LTAG surface realiser)

Safe HaskellSafe-Infered

NLP.GenI.Warning

Contents

Description

Typed warnings as an easier alternative to strings.

This makes it easier to recognise repeated warnings and print them out in a reasonable way

Synopsis

Collection of warnings

data GeniWarnings

This exists because we want the Monoid instance, providing a GenI-specific notion of appending which merges instances of the same error

Instances

Individual warnings

data GeniWarning

Constructors

LexWarning [LexEntry] LexWarning

A warning that should be repeated for each lexical entry affected

CustomLexWarning Text

A single custom warning

NoLexSelection [Literal GeniVal]

Literals which did not receive any lexical selection

MorphWarning [Text]

Warnings from the morphological realiser

showGeniWarning :: GeniWarning -> [Text]

A warning may be displayed over several lines