Reference · Marking, scores and game rules
cycleMarkfunction
゛゜: a kana's mark, round in turn — は → ば → ぱ → は, か → が → か, う → ゔ → う; a kana with no marked form stays.
Import it
import { cycleMark } from "@johnmorrisdotca/kotoba";
Definition
function cycleMark(kana: string): string
Parameters
| Name | Type | Description |
|---|---|---|
kana | string | One kana character, including supported small or voiced forms. |
Returns
string
゛゜: a kana's mark, round in turn — は → ば → ぱ → は, か → が → か, う → ゔ → う; a kana with no marked form stays.
Examples
import { cycleMark } from "@johnmorrisdotca/kotoba";
console.log(cycleMark("は"));ばWhat it prints (run when this page was built)