Skip to the content

Jisho辞書

The words of JMdict looked up by reading, written form, English meaning, a kanji in them or romaji, in small pieces fetched as needed, safe by default or unfiltered with every sense's marks, and the school grades, JLPT levels, readings, meanings and look-alike pairs of 2,999 kanji, each table an entry point of its own.

Jisho is the Japanese word 辞書 for a dictionary: this one holds Japanese words and kanji. About the name

Contents

Reference · Look words up by reading, written form, English meaning, kanji or romaji

romajiToKanafunction

A romaji as the hiragana it usually reads as: kami is かみ, shinbun is しんぶん, Tōkyō is とうきょう. Modified Hepburn and Kunrei both.

Import it

import { romajiToKana } from "@johnmorrisdotca/jisho/words";

Definition

function romajiToKana(text: string): string | null

Parameters

NameTypeDescription
textstring

Romaji.

Returns

string | null

The hiragana, or null when the text is not romaji, or has a sound romaji has no kana for.

Examples

import { romajiToKana } from "@johnmorrisdotca/jisho/words";

console.log(romajiToKana("gakkō")); // がっこう
console.log(romajiToKana("kon'nichi")); // こんにち
がっこう
こんにち

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jisho 2.11.0.