Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

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

NameTypeDescription
sayingstring

How it is written.

readingstring

How it is read.

meaningstring

Its first plain English gloss, from the sense JMdict marks as a proverb or a four-character compound.

meaningsreadonly string[]

Every plain English gloss of that sense, meaning first.

kanjireadonly string[]

The kanji it is written with, once each, in the order they appear.

elementaryboolean

Every kanji in it is taught in Japanese elementary school, or it has none.

commonboolean

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.11.0.