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

readIdiomsfunction

Reads the stored idiom list into plain rows.

Import it

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

Definition

function readIdioms(packed: PackedIdioms): Idiom[]

Parameters

NameTypeDescription
packedPackedIdioms

JA_IDIOMS, from @johnmorrisdotca/kotoba/idioms-ja.

Returns

Idiom[]

Every phrase, in the order of its reading.

Examples

import { readIdioms } from "@johnmorrisdotca/kotoba";
import { JA_IDIOMS } from "@johnmorrisdotca/kotoba/idioms-ja";

console.log(readIdioms(JA_IDIOMS).length);
2009

What it prints (run when this page was built)

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