Reference · The dictionary forms a conjugated word could come from
Deinflectiontype
One way a written word could be a conjugated dictionary word.
Import it
import type { Deinflection } from "@johnmorrisdotca/jisho/deinflect";
Also exported from: @johnmorrisdotca/jisho/words
Definition
type Deinflection = {
readonly base: string;
readonly kind: DeinflectKind;
readonly path: readonly string[];
};
Members
| Name | Type | Description |
|---|---|---|
base | string | The dictionary form it would come from. |
kind | DeinflectKind | The kind of word the base would have to be. |
path | readonly string[] | What was done to the base to make the word, innermost first: 食べなかった is |
Examples
import type { Deinflection } from "@johnmorrisdotca/jisho/deinflect";
const one: Deinflection = { base: "食べる", kind: "i", path: ["negative", "past"] };
console.log(one.path.join(", "));negative, pastWhat it prints (run when this page was built)