Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

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

NameTypeDescription
readingstring

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.11.0.