Reference · Marking, scores and game rules
normalizeShiritoriReadingfunction
A reading folded to hiragana, with anything that is not kana or a long vowel mark dropped.
Import it
import { normalizeShiritoriReading } from "@johnmorrisdotca/kotoba";
Definition
function normalizeShiritoriReading(reading: string): string
Parameters
| Name | Type | Description |
|---|---|---|
reading | string | The reading, in hiragana or katakana. |
Returns
string
The reading in hiragana.
Examples
import { normalizeShiritoriReading } from "@johnmorrisdotca/kotoba";
console.log(normalizeShiritoriReading("コーヒー")); // こーひーこーひーWhat it prints (run when this page was built)