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 · Load dictionaries

WORD_LIST_SIZESconstant

The sizes each list comes in: four to six letters, or three to five kana.

Import it

import { WORD_LIST_SIZES } from "@johnmorrisdotca/kotoba/load";

Definition

const WORD_LIST_SIZES: Readonly<Record<WordListName, readonly number[]>> = { en: [4, 5, 6], fr: [4, 5, 6], de: [4, 5, 6], ja: KANA_SIZES }

Members

NameTypeDescription
enreadonly number[]
jareadonly number[]
frreadonly number[]
dereadonly number[]

Examples

import { WORD_LIST_SIZES } from "@johnmorrisdotca/kotoba/load";
console.log(WORD_LIST_SIZES);
{ en: [ 4, 5, 6 ], fr: [ 4, 5, 6 ], de: [ 4, 5, 6 ], ja: [ 3, 4, 5 ] }

What it prints (run when this page was built)

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