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

PlaceMarktype

One place of a marked guess: how it did, and for kana whether its size or mark is wrong.

Import it

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

Definition

type PlaceMark = {
    mark: LetterMark | "kin";
    wrongSize: boolean;
    wrongMark: boolean;
};

Members

NameTypeDescription
markLetterMark | "kin"
wrongSizeboolean
wrongMarkboolean

Examples

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

const value: PlaceMark = {mark:"near",wrongSize:false,wrongMark:false};
console.log(value);
{ mark: 'near', wrongSize: false, wrongMark: false }

What it prints (run when this page was built)

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