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

KanaMarktype

HOW A KANA GUESS IS COLOURED, by John's rules for Gomoji in kana (2026-09-25; the table is in docs/plans/other/WORD-04-kana.md):

  • green: the same kana in this place;
  • green with an arrow: the same kana in this place but the wrong size (↓, っ for つ) or the wrong mark (↑, ば for は) — not found until plain green;
  • orange: the kana is in the word elsewhere, an arrow likewise when its size or mark differs;
  • yellow: the word's kana in this place is not this one but is of its family, the same consonant row of the gojūon (か行, and が with it);
  • grey: none of those.

ー is a character with no family, size or mark: green, orange or grey only. A kana is counted as often as the word holds it, as the English marking is: green first, then orange from left to right from what green left over.

Import it

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

Definition

type KanaMark = "hit" | "near" | "kin" | "miss";

Examples

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

const value: KanaMark = "kin";
console.log(value);
kin

What it prints (run when this page was built)

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