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

LookAliketype

A kanji that looks like another, and how much.

Import it

import type { LookAlike } from "@johnmorrisdotca/jisho";

Definition

type LookAlike = {
    readonly kanji: string;
    readonly score: number;
    readonly strokes: number;
    readonly parts: number;
    readonly shape: number;
};

Members

NameTypeDescription
kanjistring

The kanji it looks like.

scorenumber

The highest of the scores, out of 100.

strokesnumber

Out of 100, by how few stroke edits separate them; 0 where this measure did not rank the pair.

partsnumber

Out of 100, by the parts they share; 0 where this measure did not rank the pair.

shapenumber

Out of 100, by how alike their strokes are drawn (KanjiVG); 0 where the pair has no such score.

Examples

import type { LookAlike } from "@johnmorrisdotca/jisho";

const one: LookAlike = { kanji: "士", score: 100, strokes: 100, parts: 67, shape: 0 };
console.log(one.kanji);
士

What it prints (run when this page was built)

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