WordClasstype
One kind of word: "godan", "ichidan", "iAdjective", "suru" or "kuru", the values of WORD_CLASSES.
Import it
import type { WordClass } from "@johnmorrisdotca/hikidashi/deinflect";
Also exported from: @johnmorrisdotca/hikidashi
Definition
type WordClass = (typeof WORD_CLASSES)[keyof typeof WORD_CLASSES];
Examples
import { wordClassesOf, type WordClass } from "@johnmorrisdotca/hikidashi/deinflect";
const classes: WordClass[] = wordClassesOf("食べる", ["v1", "vt"]);
console.log(classes);[ 'ichidan' ]What it prints (run when this page was built)