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

loadCommonWordsfunction

The common words, fetched in one piece: about 26,000 rows and some 800 kB gzipped, for a page that looks up many words, all of them common. In safe mode that is one file. Unfiltered it is that and one more, of what to add and change. Anything that is not common is loadWords. A file that cannot be fetched rejects with a WordsLoadError.

Import it

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

Definition

function loadCommonWords(options?: WordsOptions): Promise<Words>

Parameters

NameTypeDescription
options (optional)WordsOptions

The mode (safe unless you say otherwise) and the consumer's lists.

Returns

Promise<Words>

The common words, ready for wordsOf.

Examples

import { loadCommonWords, wordsOf } from "@johnmorrisdotca/jisho/words";

console.log(wordsOf(await loadCommonWords(), "かみ").map((one) => one.written)); // ["紙", "神", ...]
[ '紙', '神', '髪', '加味', '上' ]

What it prints (run when this page was built)

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