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

shiritoriReadingContinuesfunction

Whether a word starts on the kana the chain has reached.

Import it

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

Definition

function shiritoriReadingContinues(reading: string, chainKey: string, rules?: ShiritoriRules): boolean

Parameters

NameTypeDescription
readingstring

The reading of the word.

chainKeystring

The last word's tail key.

rules (optional)ShiritoriRules

House rules; the forgiving ones if left out.

Returns

boolean

Whether the word continues the chain, wherever it then leads.

Examples

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

console.log(shiritoriReadingContinues("らくだ", "ら"));
true

What it prints (run when this page was built)

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