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

kanaFromRomajifunction

Every hiragana text a romaji can read as, the usual first: one, unless it writes a long vowel with a macron or a circumflex, which a reading writes more than one way. At most eight. A text that is not romaji, or has a sound romaji has no kana for, gives none.

Import it

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

Definition

function kanaFromRomaji(text: string): string[]

Parameters

NameTypeDescription
textstring

Romaji: kami, shinbun, Tōkyō, kōhī, kon'nichi.

Returns

string[]

The readings, the usual first; none when it is not romaji.

Examples

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

console.log(kanaFromRomaji("kōhī")); // ["こうひい", "こうひー", "こーひい", "こーひー", ...]
console.log(kanaFromRomaji("Hello!")); // []
[ 'こうひい', 'こーひー', 'こうひー', 'こおひい', 'こおひー', 'こーひい' ]
[]

What it prints (run when this page was built)

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