Whether adjectives go before (or after) nouns.
A string, which serves as an identifier for the language.
Ending list for toAdjective
.
Whether the language has grammatical gender.
Whether nouns are capitalized.
Adds an appropriately declensed adjective to a noun.
The adjective, already declensed.
The noun to which the adjective is added.
Additional options.
A string with the adjective + noun combination in the correct order.
The grammatical gender of "antiprism".
The grammatical gender of "d-orthoplex".
The grammatical gender of "cuploid".
The grammatical gender of "cupola".
The grammatical gender of "cupolaic blend".
The name for an d-element, according to Wendy Krieger's polygloss. This is an extension of the scheme Jonathan Bowers uses on his website. Works up to d = 30
. Defaults to "d-element"
.
Most of these are neologisms, so feel free to translate them as you think is appropriate.
The number of dimensions of the element.
Result modifiers.
The name of a d-element.
Calls Ending.findEnding
using the language's list of endings.
The string for which we want to match an ending.
The first ending that matches, or null
if none does.
Converts a number n
into a greek prefix (or whatever works similarly in the target language). Based on George Hart's scheme for greek numerical prefixes. Works only from 0 to 99999. Defaults to "n-"
.
The number to convert.
The number n
as a greek prefix.
The grammatical gender of "d-hypercube".
The grammatical gender of "n-prism".
The grammatical gender of "n-pyramid".
The grammatical gender of "n-tegum".
The grammatical gender of an n-sided d-tope.
The grammatical gender of an {n / d} polygon.
The grammatical gender of "d-simplex".
Converts a polytope name into an adjective, possibly depending on the grammatical gender of the substantive it modifies.
To do this, the code compares the string with a list of Ending
patterns. The longest pattern that matches is then applied to transform the string into what will hopefully be the correct adjective form. If no match is found, the string is left as-is.
// Sets language to English.
setLanguage("en");
// "cubic"
console.log(Language.toAdjective("cube"));
The name of the polytope to convert into an adjective.
The grammatical gender to use.
The polytope name as an adjective.
Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM
The base class for all other languages. Specifies attributes of the language, and contains method stubs that should mostly work across most languages.