Saying型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One proverb or four-character compound.
インポート
import type { Saying } from "@johnmorrisdotca/kotoba";
定義
type Saying = {
readonly saying: string;
readonly reading: string;
readonly meaning: string;
readonly meanings: readonly string[];
readonly kanji: readonly string[];
readonly elementary: boolean;
readonly common: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
saying | string | How it is written. |
reading | string | How it is read. |
meaning | string | Its first plain English gloss, from the sense JMdict marks as a proverb or a four-character compound. |
meanings | readonly string[] | Every plain English gloss of that sense, |
kanji | readonly string[] | The kanji it is written with, once each, in the order they appear. |
elementary | boolean | Every kanji in it is taught in Japanese elementary school, or it has none. |
common | boolean | JMdict marks it as common. |
例
import type { Saying } from "@johnmorrisdotca/kotoba";
const one: Saying = { saying: "七転八起", reading: "しちてんはっき", meaning: "falling seven times, getting up eight", meanings: ["falling seven times, getting up eight"], kanji: ["七", "転", "八", "起"], elementary: true, common: false };
console.log(one.saying);七転八起出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。