WORD_CLASSESconstant
The kinds of word a conjugated form can come from, each named by itself: godan and ichidan verbs, iAdjective,
and the two irregular verbs suru (する) and kuru (来る). Compare a WordClass with these rather than with a
string typed out.
Import it
import { WORD_CLASSES } from "@johnmorrisdotca/hikidashi/deinflect";
Also exported from: @johnmorrisdotca/hikidashi
Definition
const WORD_CLASSES: { readonly godan: "godan"; readonly ichidan: "ichidan"; readonly iAdjective: "iAdjective"; readonly suru: "suru"; readonly kuru: "kuru"; } = {
godan: "godan",
ichidan: "ichidan",
iAdjective: "iAdjective",
suru: "suru",
kuru: "kuru",
} as const
Members
| Name | Type | Description |
|---|---|---|
godan | "godan" | |
ichidan | "ichidan" | |
iAdjective | "iAdjective" | |
suru | "suru" | |
kuru | "kuru" |
Examples
import { WORD_CLASSES, dictionaryForms } from "@johnmorrisdotca/hikidashi/deinflect";
console.log(Object.values(WORD_CLASSES));
console.log(dictionaryForms("高くて").filter((one) => one.wordClass === WORD_CLASSES.iAdjective));[ 'godan', 'ichidan', 'iAdjective', 'suru', 'kuru' ]
[ { base: '高い', wordClass: 'iAdjective' } ]What it prints (run when this page was built)