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

KanaMarkedtype

One kana guess position with its native match and size/voicing differences.

Import it

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

Definition

type KanaMarked = {
    mark: KanaMark;
    wrongSize: boolean;
    wrongMark: boolean;
};

Members

NameTypeDescription
markKanaMark
wrongSizeboolean
wrongMarkboolean

Examples

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

const value: KanaMarked = {mark:"hit",wrongSize:true,wrongMark:false};
console.log(value);
{ mark: 'hit', wrongSize: true, wrongMark: false }

What it prints (run when this page was built)

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