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

PackedLookAlikestype

The shape of LOOK_ALIKE, from @johnmorrisdotca/jisho/look-alike.

Import it

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

Definition

type PackedLookAlikes = {
    readonly source: string;
    readonly pairs: readonly (readonly [
        string,
        number,
        number
    ] | readonly [
        string,
        number,
        number,
        number
    ])[];
};

Members

NameTypeDescription
sourcestring

Whose scores they are.

pairsreadonly (readonly [string, number, number] | readonly [string, number, number, number])[]

The two kanji written together, then the score by strokes and the score by parts, each out of 100, 0 where not scored, and the score by shape where there is one (the pairs the first two did not hold).

Examples

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

const packed: PackedLookAlikes = { source: "a study", pairs: [["士土", 100, 67], ["己巳", 0, 0, 84]] };
console.log(packed.pairs.length);
2

What it prints (run when this page was built)

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