LONGEST_ENDINGconstant
The longest ending, in characters, that any rule strips, so a caller matching words in running text knows how far past a dictionary word to look for its conjugation.
Import it
import { LONGEST_ENDING } from "@johnmorrisdotca/hikidashi/deinflect";
Also exported from: @johnmorrisdotca/hikidashi
Definition
const LONGEST_ENDING: number = Math.max(...RULES.map((rule) => Array.from(rule.from).length))
Examples
import { LONGEST_ENDING } from "@johnmorrisdotca/hikidashi/deinflect";
console.log(LONGEST_ENDING);7What it prints (run when this page was built)