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

decodeGuessesfunction

Guesses run together, size letters each, read back as a list; null for anything else.

Import it

import { decodeGuesses } from "@johnmorrisdotca/kotoba";

Definition

function decodeGuesses(code: string, size: number, lang?: GomojiLanguage): string[] | null

Parameters

NameTypeDescription
codestring

Guesses concatenated in lowercase, with size characters per guess.

sizenumber

The number of letters or kana in each word.

lang (optional)GomojiLanguage

The English, French or German alphabet.

Returns

string[] | null

Guesses run together, size letters each, read back as a list; null for anything else.

Examples

import { decodeGuesses } from "@johnmorrisdotca/kotoba";

console.log(decodeGuesses("alleyapple",5));
[ 'alley', 'apple' ]

What it prints (run when this page was built)

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