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

lookAlikesfunction

The kanji most like one kanji, the closest first.

Import it

import { lookAlikes } from "@johnmorrisdotca/jisho";

Definition

function lookAlikes(table: PackedLookAlikes, kanji: string, options?: LookAlikeOptions): LookAlike[]

Parameters

NameTypeDescription
tablePackedLookAlikes

LOOK_ALIKE, from @johnmorrisdotca/jisho/look-alike.

kanjistring

One kanji.

options (optional)LookAlikeOptions

How low to go and how many to give back.

Returns

LookAlike[]

The kanji that look like it; none when none reaches the score. None does not say a kanji has no look-alike: Yencken's two measures cover only the 1,945 jōyō kanji of before 2010, and the shape scores that make up for it keep only the nearest.

Examples

import { lookAlikes } from "@johnmorrisdotca/jisho";
import { LOOK_ALIKE } from "@johnmorrisdotca/jisho/look-alike";

console.log(lookAlikes(LOOK_ALIKE, "土").map((one) => one.kanji));
[ '工', '士', '里', '王', '五' ]

What it prints (run when this page was built)

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