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

kanjiOfWordfunction

The entries of the kanji table for the kanji a word is written with, once each, in the order they appear: so a word can show its kanji with their grade, JLPT level, readings and meanings. A kanji the table does not hold is left out, and a word with no kanji (it is written in kana) has none. A word usually written in kana is looked at by its commonest written form.

Import it

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

Definition

function kanjiOfWord(word: Word, kanji: readonly Kanji[]): Kanji[]

Parameters

NameTypeDescription
wordWord

A word a lookup returned.

kanjireadonly Kanji[]

The rows of the table, from readKanji(KANJI).

Returns

Kanji[]

The kanji of the word, in order.

Examples

import { readKanji } from "@johnmorrisdotca/jisho";
import { KANJI } from "@johnmorrisdotca/jisho/kanji";
import { kanjiOfWord, loadWords, wordsOf } from "@johnmorrisdotca/jisho/words";

const word = wordsOf(await loadWords("やま"), "やま")[0];
console.log(word && kanjiOfWord(word, readKanji(KANJI)).map((one) => `${one.kanji} grade ${one.grade}`)); // ["山 grade 1"]
[ '山 grade 1' ]

What it prints (run when this page was built)

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