Skip to main content

Language functions

Index of language functions

chooseAtRandom

Randomly selects and outputs one of the input expressions.

countable

Generates a countable noun phrase in grammatically correct form.

countryAdjective

Converts the input country name to its adjective form.

countryDeterminer

Adds a 'the' determiner to the input country name, if one is required.

gender

Returns the gender of the input name (e.g. 'male' for 'John').

inflectNoun

Returns the inflected form of a noun.

inflectVerb

Returns the inflected form of a verb.

isCountry

Tests if a name is recognized by countryAdjective and countryDeterminer.

list

Presents the input values as a punctuated list.

numToWords

Converts a number to words.

pronoun

Returns the correct pronoun for the input name.

realise

Generates text from lex rules and input data.