リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
InflectedWord型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A word found for a text, and how the text comes from it.
インポート
import type { InflectedWord } from "@johnmorrisdotca/jisho/words";
定義
type InflectedWord = {
readonly word: Word;
readonly form: string;
readonly path: readonly string[];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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 |
例
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, past出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。