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

ShiritoriRefusaltype

Why a word was refused: it starts on the wrong kana, holds no kana, or was said already. A word ending in ん is not refused; it is played and it loses (loses).

Import it

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

Definition

type ShiritoriRefusal = "not-kana" | "wrong-start" | "repeated";

Examples

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

const why: ShiritoriRefusal = "repeated";
console.log(why);
repeated

What it prints (run when this page was built)

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