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 whole entry of a word: every sense, and everything JMdict says of it

loadEntryfunction

The whole entry of a word, or null when JMdict has no entry by that number. In safe mode, the default, the senses JMdict marks vulgar, X-rated, sensitive or derogatory are not in it and nothing that holds them is fetched; "unfiltered" gives the entry whole. One piece of about 40 kB gzipped is fetched for an entry, and one more in unfiltered mode, kept for the next entry in it.

Import it

import { loadEntry } from "@johnmorrisdotca/jisho/entries";

Definition

function loadEntry(word: Pick<Word, "id"> | number, options?: { readonly mode?: WordsMode; }): Promise<Entry | null>

Parameters

NameTypeDescription
wordnumber | Pick<Word, "id">

A word a lookup gave, or the number of its entry.

options (optional){ readonly mode?: WordsMode; }

mode, "safe" unless you say "unfiltered"; it must be the mode the word was found in.

Returns

Promise<Entry | null>

The entry, or null when JMdict has no entry by that number.

Examples

import { loadEntry } from "@johnmorrisdotca/jisho/entries";
import { loadWords, wordsOf } from "@johnmorrisdotca/jisho/words";

const words = await loadWords("かみ");
const word = wordsOf(words, "かみ")[0];
if (word !== undefined) console.log((await loadEntry(word))?.senses.length);
1

What it prints (run when this page was built)

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