@yar.ua/numerals
Version:
Number to text - Inflector for Ukrainian numerals
7 lines (6 loc) • 546 B
TypeScript
import { SyntaxNode } from "./syntax/node.js";
import { InflectionForm } from "./grammar.js";
export declare const MAX_DIGIT_COUNT = 27;
export declare function inflect(whole: string | number, form: Partial<InflectionForm>, insert_ones?: boolean, strict_range?: boolean): string;
export declare function build_tree(root: SyntaxNode, whole: string | number, insert_ones?: boolean, strict_range?: boolean): void;
export declare function build_tree_from_digits(root: SyntaxNode, digits: string[], insert_ones: boolean, strict_range: boolean): void;