@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.
36 lines (35 loc) • 1.18 kB
TypeScript
/** A level. */
export type Level = "MIN" | "SBE" | "IFR" | "DFC" | "EQU" | "SUR" | "SPL" | "SPQ" | "MAX";
/** An array containing all levels. */
export declare const ALL_LEVELS: readonly Level[];
/** An object mapping levels to their Ithkuilic translations. */
export declare const LEVEL_TO_ITHKUIL_MAP: {
readonly MIN: "ao";
readonly SBE: "aö";
readonly IFR: "eo";
readonly DFC: "eö";
readonly EQU: "oë";
readonly SUR: "öe";
readonly SPL: "oe";
readonly SPQ: "öa";
readonly MAX: "oa";
};
/** An object mapping levels to their names. */
export declare const LEVEL_TO_NAME_MAP: {
readonly MIN: "Minimal";
readonly SBE: "Subequative";
readonly IFR: "Inferior";
readonly DFC: "Deficient";
readonly EQU: "Equative";
readonly SUR: "Surpassive";
readonly SPL: "Superlative";
readonly SPQ: "Superequative";
readonly MAX: "Maximal";
};
/**
* Converts a level into Ithkuil.
*
* @param level The level to be converted.
* @returns Romanized Ithkuilic text representing the level.
*/
export declare function levelToIthkuil(level: Level): "ao" | "aö" | "eo" | "eö" | "oë" | "öe" | "oe" | "öa" | "oa";