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

readCommonWordsfunction

The common words as a table the caller already has, read into words: a lookup by reading or written form with no waiting. Only the common words are in it, so a reading shared with a rare word finds the common ones alone.

The table holds only what safe mode keeps. To have everything, pass mode: "unfiltered" and extra, the table that says what to add and change (COMMON_EXTRA, from @johnmorrisdotca/jisho/words-common-extra); without it that is a mistake and throws.

Import it

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

Definition

function readCommonWords(table: PackedWords, options?: WordsOptions & { readonly extra?: PackedPatch; }): Words

Parameters

NameTypeDescription
tablePackedWords

COMMON_WORDS, from @johnmorrisdotca/jisho/words-common.

options (optional)WordsOptions & { readonly extra?: PackedPatch; }

The mode (safe unless you say otherwise), the consumer's lists, and for unfiltered the extra table.

Returns

Words

The words, ready for wordsOf.

Examples

import { readCommonWords, wordsOf } from "@johnmorrisdotca/jisho/words";
import { COMMON_WORDS } from "@johnmorrisdotca/jisho/words-common";

console.log(wordsOf(readCommonWords(COMMON_WORDS), "紙")[0]?.meaning); // paper
paper

What it prints (run when this page was built)

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