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 · The functions that read the tables

searchKanjifunction

The kanji that hold a piece of text: the character itself, a reading or a meaning, in English or French, ignoring case.

Import it

import { searchKanji } from "@johnmorrisdotca/jisho";

Definition

function searchKanji(kanji: readonly Kanji[], text: string): Kanji[]

Parameters

NameTypeDescription
kanjireadonly Kanji[]

The rows, from readKanji.

textstring

What was typed; blank text matches nothing.

Returns

Kanji[]

The rows that match: those that are the word typed first, then those that hold it, the commonest first in each.

Examples

import { readKanji, searchKanji } from "@johnmorrisdotca/jisho";
import { KANJI } from "@johnmorrisdotca/jisho/kanji";

console.log(searchKanji(readKanji(KANJI), "mountain")[0]?.kanji); // 山
山

What it prints (run when this page was built)

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