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

kanaFoundfunction

Found: every place plain green — the right kana, the right size, the right mark.

Import it

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

Definition

function kanaFound(guess: readonly string[], word: readonly string[]): boolean

Parameters

NameTypeDescription
guessreadonly string[]

The guessed word or kana array, with the same length as the hidden word.

wordreadonly string[]

The word or kana array specified by this signature.

Returns

boolean

Found: every place plain green — the right kana, the right size, the right mark.

Examples

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

console.log(kanaFound(["は","な"],["は","な"]));
true

What it prints (run when this page was built)

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