Plugin: Functions#

This plugin contains special Function defintions that can be invoked. All functions are specified with the given schema,

Where package is the dot-separated path to the function package, name is the function name, arguments is a list (possibly singleton or empty) of the argument names, result is the functional output and type is the expected data structure of the output.

Package: Language Game#

  • Path: lang, lg

These functions are somewhat whimsical and abstract. You may interpret them as you see fit.

Package: Linguistics#

  • Path: ling, l

These functions perform various linguistic analysis.

Object Level Functions#

  • Path: ling.object, ling.obj, l.object, l.obj

These functions should return a word or list of words. Note in the following definitions the logical connective of equivalence, , is used to mean “has an equivalent meaning” and the parallel relation of geometry, , is used to mean “rhymes with”.

Each function signature is given along with a short description. Optional arguments are signified with ?.

Metric Extensions#

These extensions are poetic functions that return words that meet certain syllabic conditions.

Syntactic Extensions#

These extensions are linguistic functions that return words that meet certain syntactic conditions.

Important

It is important to note that ling.object.rhyme always returns a set of words. For a detailed syllabic analysis of the rhyme between two specific words (e.g., X and Y), use the meta-level function ling.meta.rhyme(X, Y).

Meta Level Functions#

  • Path: ling.meta, ling.m, l.meta, l.m

These functions provide metalgoical level lookups and analysis.

Textual Intensions#

Visual Intensions#

Examples#

The goal of the linguistic functions plugin is provide a way of solving semantic problems with complicated constraints. Consider the following prompt,

l.obj.iamb(l.obj.contains(em) ∩ l.obj.rhymes(November) ∩ l.obj.conn(burning))

This prompt would translate as,

From the intersection of the set of words that contain the syllable ‘em’, the set of words that rhyme or near-rhyme with ‘November’ and the set of words with the connotation of ‘burning’, return those words which are iambic.

A valid solution to this prompt would be ember.

See Exercises: Rhymations for more examples of expressions and constraints that can be created using the palette of functions defined in this plugin.