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 · Stroke order from KanjiVG: draw it, and find a kanji by drawing it

loadStrokesfunction

The strokes of the kanji in a text, fetched: one piece of about 20 kB gzipped for each place they are in. Anything that is not a kanji the table has is left out of the answer.

Import it

import { loadStrokes } from "@johnmorrisdotca/jisho/strokes";

Definition

function loadStrokes(text: string): Promise<PackedStrokes>

Parameters

NameTypeDescription
textstring

A kanji, or a text with some.

Returns

Promise<PackedStrokes>

A table to give strokesOf, strokeOrderSvg and findByDrawing, with those kanji in it.

Examples

import { loadStrokes, strokesOf } from "@johnmorrisdotca/jisho/strokes";

console.log(strokesOf(await loadStrokes("日本"), "日").length); // 4
4

What it prints (run when this page was built)

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