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
| Name | Type | Description |
|---|---|---|
kana | string | 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)