Reference · Look words up by reading, written form, English meaning, kanji or romaji
InflectedWordtype
A word found for a text, and how the text comes from it.
Import it
import type { InflectedWord } from "@johnmorrisdotca/jisho/words";
Definition
type InflectedWord = {
readonly word: Word;
readonly form: string;
readonly path: readonly string[];
};
Members
| Name | Type | Description |
|---|---|---|
word | Word | The dictionary word. |
form | string | The dictionary form as it was looked up, spelled as the text spells it (in kana for a text in kana): the text itself when the path is empty. |
path | readonly string[] | What was done to its dictionary form to make the text, innermost first: 食べなかった is |
Examples
import type { InflectedWord } from "@johnmorrisdotca/jisho/words";
const found: InflectedWord = { word: { written: "食べる", reading: "たべる", forms: ["食べる"], meaning: "to eat", senses: [], kinds: "i", common: true, rank: 1, priority: [] }, form: "食べる", path: ["negative", "past"] };
console.log(found.path.join(", "));negative, pastWhat it prints (run when this page was built)