Reference · Look words up by reading, written form, English meaning, kanji or romaji
foldKanafunction
A text folded to hiragana: the katakana move down, ー and everything else stay. The reading of a loanword is found by either.
Import it
import { foldKana } from "@johnmorrisdotca/jisho/words";
Definition
function foldKana(text: string): string
Parameters
| Name | Type | Description |
|---|---|---|
text | string | Any text. |
Returns
string
The text with each katakana changed to the hiragana of the same sound.
Examples
import { foldKana } from "@johnmorrisdotca/jisho/words";
console.log(foldKana("カミ")); // かみかみWhat it prints (run when this page was built)