Deinflection型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One answer of dictionaryForms: a dictionary form the written word could come from, and the kind of word it would
have to be for that to be true.
インポート
import type { Deinflection } from "@johnmorrisdotca/hikidashi/deinflect";
ほかのエクスポート元: @johnmorrisdotca/hikidashi
定義
type Deinflection = {
base: string;
wordClass: WordClass;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
base | string | The dictionary form, as a dictionary lists it: 行く, 食べる, 高い. |
wordClass | WordClass | The kind of word |
例
import { dictionaryForms, type Deinflection } from "@johnmorrisdotca/hikidashi/deinflect";
const first: Deinflection | undefined = dictionaryForms("行きました")[0];
console.log(first?.base, first?.wordClass);行く godan出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。