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

toggleSizefunction

小: a kana made small, or large again (つ ⇄ っ); one with no small form stays as it is.

Import it

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

Definition

function toggleSize(kana: string): string

Parameters

NameTypeDescription
kanastring

One kana character, including supported small or voiced forms.

Returns

string

小: a kana made small, or large again (つ ⇄ っ); one with no small form stays as it is.

Examples

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

console.log(toggleSize("つ"));
っ

What it prints (run when this page was built)

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