Reference · Marking, scores and game rules
Sayingtype
One proverb or four-character compound.
Import it
import type { Saying } from "@johnmorrisdotca/kotoba";
Definition
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;
};
Members
| Name | Type | Description |
|---|---|---|
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. |
Examples
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);七転八起What it prints (run when this page was built)