languageUtils
This file contains utility functions for working with Japanese characters.
Functions¶
isKanji()¶
Defined in: src/utils/languageUtils.ts:11
Checks if a character is a Kanji character.
Parameters¶
Parameter | Type | Description |
---|---|---|
char |
string |
The character to check. |
Returns¶
boolean
True if the character is a Kanji character, false otherwise.
toHiragana()¶
Defined in: src/utils/languageUtils.ts:23
Converts a string from Katakana to Hiragana.
Parameters¶
Parameter | Type | Description |
---|---|---|
text |
string |
The string to convert. |
Returns¶
string
The converted string.