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

DailyOptionstype

How a day's word is chosen.

Import it

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

Definition

type DailyOptions = {
    salt?: string;
    zone?: string;
};

Members

NameTypeDescription
salt (optional)string | undefined

Names the list, so that two lists of one length are dealt in different orders. Unless said, empty.

zone (optional)string | undefined

An IANA time zone, for a moment given as a Date: the word turns over at that place's midnight. Unless said, UTC.

Examples

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

const value: DailyOptions = {salt:"sample",zone:"UTC"};
console.log(value);
{ salt: 'sample', zone: 'UTC' }

What it prints (run when this page was built)

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