API documentation: internals

Generic utility functions

Orthography.collecttailFunction
collecttail(s, arr)
collecttail(s, arr, stripped)

Remove all trailing characters belong to list in arr, and collect them. This is useful to collect punctuation from a token, for example.

source
Orthography.trimtailFunction

Remove all trailing characters belong to list in arr, and return the trimmed string.

trimtail(s, arr)

This is useful to remove punctuation from a token, for example.

source

Functions supporting the SimpleAscii implementation

Orthography.asciinumericFunction

Compose list of numeric characters in SimpleAscii.

asciinumeric()

Allow notation of positive or negative decimals.

source
Orthography.asciitokenforstringFunction

Construct an OrthographicToken from a string.

asciitokenforstring(s)

s is a string representing a single token in the SimpleAscii orthography.

source
Orthography.isAsciiNumericFunction

True if all characters in s are numeric characters and at least one is a digits.

isAsciiNumeric(s)

Obviously not a real-world definition of syntax for a numeric token.

source