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

furiganaOfSurfacefunction

The pieces of a word as it is written in a text, which may be a conjugated form of the dictionary form it was found by: 食べなかった from 食べる (たべる) is 食 (た) and べなかった. Conjugation changes the end of a word, so the pieces of the dictionary form hold as far as the two spellings agree, and what follows is kana that needs no reading. 来 takes the reading its ending asks for.

Import it

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

Definition

function furiganaOfSurface(surface: string, base: string, reading: string): FuriganaPart[]

Parameters

NameTypeDescription
surfacestring

The word as the text writes it.

basestring

The dictionary form it comes from, as spelled when it was looked up (the surface itself for a word that is not conjugated).

readingstring

The reading of the dictionary form.

Returns

FuriganaPart[]

The pieces, which put together are surface.

Examples

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

console.log(furiganaOfSurface("食べなかった", "食べる", "たべる")); // [{ text: "食", reading: "た" }, { text: "べなかった" }]
[ { text: '食', reading: 'た' }, { text: 'べ' }, { text: 'なかった' } ]

What it prints (run when this page was built)

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