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

Idiomtype

One set phrase.

Import it

import type { Idiom } from "@johnmorrisdotca/kotoba";

Definition

type Idiom = {
    readonly idiom: string;
    readonly reading: string;
    readonly meaning: string;
    readonly meanings: readonly string[];
    readonly kind: IdiomKind;
    readonly kanji: readonly string[];
    readonly elementary: boolean;
    readonly common: boolean;
};

Members

NameTypeDescription
idiomstring

How it is written.

readingstring

How it is read.

meaningstring

Its first plain English gloss, from the sense that makes it an idiom.

meaningsreadonly string[]

Every plain English gloss of that sense, meaning first.

kindIdiomKind

Whose judgement put it on the list.

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 { Idiom } from "@johnmorrisdotca/kotoba";

const one: Idiom = { idiom: "油を売る", reading: "あぶらをうる", meaning: "to loaf", meanings: ["to loaf"], kind: "idiom", kanji: ["油", "売"], elementary: true, common: false };
console.log(one.idiom);
油を売る

What it prints (run when this page was built)

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