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

PackedSayingstype

The proverb and four-character compound lists as they are stored: one row an entry, the two flags as 0 or 1.

Import it

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

Definition

type PackedSayings = {
    readonly release: string;
    readonly sayings: readonly (readonly [
        string,
        string,
        readonly string[],
        number,
        number
    ])[];
};

Members

NameTypeDescription
releasestring

The JMdict release it was made from.

sayingsreadonly (readonly [string, string, readonly string[], number, number])[]

Written form, reading, meanings, then elementary and common.

Examples

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

const packed: PackedSayings = { release: "2026-11-04", sayings: [["七転八起", "しちてんはっき", ["falling seven times, getting up eight"], 1, 0]] };
console.log(packed.release);
2026-11-04

What it prints (run when this page was built)

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