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

readSayingsfunction

Reads a stored list of proverbs or four-character compounds into plain rows.

Import it

import { readSayings } from "@johnmorrisdotca/kotoba";

Definition

function readSayings(packed: PackedSayings): Saying[]

Parameters

NameTypeDescription
packedPackedSayings

JA_PROVERBS, from @johnmorrisdotca/kotoba/proverbs-ja, or JA_YOJIJUKUGO, from @johnmorrisdotca/kotoba/yojijukugo-ja.

Returns

Saying[]

Every entry, in the order of its reading.

Examples

import { readSayings } from "@johnmorrisdotca/kotoba";
import { JA_PROVERBS } from "@johnmorrisdotca/kotoba/proverbs-ja";

console.log(readSayings(JA_PROVERBS).length);
929

What it prints (run when this page was built)

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