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.

21 lines (20 loc) 885 B
import { type BiasAdjunct } from "../../generate/adjunct/bias.js"; import { DCWord } from "../decompose.js"; /** * Builds a bias adjunct. * * @param word The word to be built. * @returns Either a parsed `BiasAdjunct` indicating a success, or `undefined` * indicating a tokenization failure. Throws if the adjunct was successfully * tokenized but had another error in it (e.g. invalid bias). */ export declare function buildBiasAdjunct(word: string): BiasAdjunct | undefined; /** * Decomposes a bias adjunct. * * @param word The word to be decomposed. * @returns Either a parsed array of decompositions indicating a success, or * `undefined` indicating a tokenization failure. Throws if the adjunct was * successfully tokenized but had another error in it (e.g. invalid bias). */ export declare function dcBiasAdjunct(word: string): DCWord<"adjBias"> | undefined;