Reference · Marking, scores and game rules
kanaBasefunction
A kana without its size or its mark: ぱ → は, っ → つ, ゔ → う. ー and anything unknown are themselves.
Import it
import { kanaBase } from "@johnmorrisdotca/kotoba";
Definition
function kanaBase(kana: string): string
Parameters
| Name | Type | Description |
|---|---|---|
kana | string | One kana character, including supported small or voiced forms. |
Returns
string
A kana without its size or its mark: ぱ → は, っ → つ, ゔ → う. ー and anything unknown are themselves.
Examples
import { kanaBase } from "@johnmorrisdotca/kotoba";
console.log(kanaBase("ぱ"));はWhat it prints (run when this page was built)