Reference · Rules, tiles and records
tileKanafunction
The tile a kana is played with, or null for anything that is not hiragana (ー, katakana, a letter).
Import it
import { tileKana } from "@johnmorrisdotca/kumimoji";
Definition
function tileKana(kana: string): string | null
Parameters
| Name | Type | Description |
|---|---|---|
kana | string | The hiragana reading to map to a base tile. |
Returns
string | null
The tile a kana is played with, or null for anything that is not hiragana (ー, katakana, a letter).
Examples
import { tileKana } from "@johnmorrisdotca/kumimoji";
console.log(tileKana("が"));かWhat it prints (run when this page was built)