@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.
12 lines (11 loc) • 339 B
JavaScript
import { CASE_TO_NAME_MAP } from "../generate/index.js";
import { GlossString, asGloss } from "./glossable.js";
/**
* Glosses a case.
*
* @param case_ The case to be glossed.
* @returns A `GlossString` representing the case.
*/
export function glossCase(case_) {
return new GlossString(case_, asGloss(CASE_TO_NAME_MAP[case_]));
}