UNPKG

@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.

15 lines (14 loc) 596 B
import { caseToIthkuil } from "../../formative/slot-9/case.js"; import { WithWYAlternative } from "../../helpers/with-wy-alternative.js"; import { suppletiveAdjunctTypeToIthkuil, } from "./type.js"; export * from "./type.js"; /** * Converts a suppletive adjunct into Ithkuil. * * @param adjunct The adjunct to be converted. * @returns Romanized Ithkuilic text representing the adjunct. */ export function suppletiveAdjunctToIthkuil(adjunct) { const type = suppletiveAdjunctTypeToIthkuil(adjunct.type); return WithWYAlternative.add(type, caseToIthkuil(adjunct.case, false, false)); }