Skip to content

languageUtils

This file contains utility functions for working with Japanese characters.

Functions

isKanji()

function isKanji(char): boolean;

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()

function toHiragana(text): string;

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.