@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.
17 lines (16 loc) • 918 B
TypeScript
/** A regular expression matching legal single-letter word-final consonant forms. */
export declare const LEGAL_WORD_FINAL_1_CONSONANT_FORMS: RegExp;
/** A regular expression matching legal two-letter word-final consonant forms. */
export declare const LEGAL_WORD_FINAL_2_CONSONANT_FORMS: RegExp;
/** A regular expression matching legal three-letter word-final consonant forms. */
export declare const LEGAL_WORD_FINAL_3_CONSONANT_FORMS: RegExp;
/** A regular expression matching legal four-letter word-final consonant forms. */
export declare const LEGAL_WORD_FINAL_4_CONSONANT_FORMS: RegExp;
/**
* Checks whether a consonant form is allowed in word-final position.
*
* @param consonantForm The consonant form to check.
* @returns A boolean indicating whether the consonant form is a legal
* word-final consonant form.
*/
export declare function isLegalWordFinalConsonantForm(consonantForm: string): boolean;