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

decodeHiddenfunction

A hidden word read back, in lower case, or null for one that is not size letters of the language's alphabet.

Import it

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

Definition

function decodeHidden(givens: string, size: number, lang?: GomojiLanguage): string | null

Parameters

NameTypeDescription
givensstring

The uppercase native hidden-word code.

sizenumber

The number of letters or kana in each word.

lang (optional)GomojiLanguage

The English, French or German alphabet.

Returns

string | null

A hidden word read back, in lower case, or null for one that is not size letters of the language's alphabet.

Examples

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

console.log(decodeHidden("APPLE",5));
apple

What it prints (run when this page was built)

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