@zsnout/ithkuil
Version:
A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.
21 lines (20 loc) • 793 B
TypeScript
/**
* A regular expression matching legal single-letter word-initial consonant
* forms.
*/
export declare const LEGAL_WORD_INITIAL_1_CONSONANT_FORMS: RegExp;
/** A regular expression matching legal two-letter word-initial consonant forms. */
export declare const LEGAL_WORD_INITIAL_2_CONSONANT_FORMS: RegExp;
/**
* A regular expression matching legal three-letter word-initial consonant
* forms.
*/
export declare const LEGAL_WORD_INITIAL_3_CONSONANT_FORMS: RegExp;
/**
* Checks whether a consonant form is allowed in word-initial position.
*
* @param consonantForm The consonant form to check.
* @returns A boolean indicating whether the consonant form is a legal
* word-initial consonant form.
*/
export declare function isLegalWordInitialConsonantForm(text: string): boolean;