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 · What an English word means

readMeaningsfunction

Reads a stored list of meanings into a map from word to line.

Import it

import { readMeanings } from "@johnmorrisdotca/kotoba/meanings-en";

Definition

function readMeanings(packed: PackedMeanings): Map<string, string>

Parameters

NameTypeDescription
packedPackedMeanings

EN_MEANINGS_5 and the like, from the lists' modules, or a table of your own in the same shape.

Returns

Map<string, string>

Each word's line.

Examples

import { readMeanings } from "@johnmorrisdotca/kotoba/meanings-en";

console.log(readMeanings({ release: "x", rows: "crane\tlifts and moves heavy objects" }).get("crane"));
lifts and moves heavy objects

What it prints (run when this page was built)

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