Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Rules, tiles and records

kanaTileCodefunction

The code of a base kana's tile, or of a wild given that kana.

Import it

import { kanaTileCode } from "@johnmorrisdotca/kumimoji";

Definition

function kanaTileCode(kana: string, wild?: boolean): string | null

Parameters

NameTypeDescription
kanastring

The hiragana reading to map to a base tile.

wild (optional)boolean

Whether to encode the assigned face as a wild tile.

Returns

string | null

The internal tile code, or null when the kana has no supported base tile.

Examples

import { kanaTileCode } from "@johnmorrisdotca/kumimoji";

console.log(kanaTileCode("は"));

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.