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

ShiritoriRulestype

House rules, since no two tables play alike. The defaults are the forgiving ones, which keep a chain going from a small pool of words.

Import it

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

Definition

type ShiritoriRules = {
    readonly voicing?: "ignored" | "kept";
    readonly longVowel?: "vowel" | "before";
};

Members

NameTypeDescription
voicing (optional)"ignored" | "kept" | undefined

"ignored" (the default): が chains from か. "kept": only from が.

longVowel (optional)"vowel" | "before" | undefined

What a final ー chains on. "vowel" (the default): コーヒー chains on い. "before": on ひ.

Examples

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

const strict: ShiritoriRules = { voicing: "kept", longVowel: "before" };
console.log(strict);
{ voicing: 'kept', longVowel: 'before' }

What it prints (run when this page was built)

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