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

findByMeaningfunction

Words found by what they mean in English, the best answers first. The index holds, for each English term, the readings of twenty words: up to ten whose gloss is exactly the term (drink is the first gloss of 飲む, "to drink"), the commonest first, then the commonest that merely have it (every word JMdict ranks has all of its terms; a word it does not rank, only those of its first gloss), so limit words cost the term's piece, about 15 kB gzipped, and at most that many pieces of the dictionary.

A text of several words finds the words whose glosses hold them one after the other (the index has every pair of terms that follow each other in the gloss of a word JMdict ranks, and no more). The words are in the mode asked for, and the block and allow lists are laid over them, as for loadWords. Words every gloss has (to, the, a) are left out of the text. A piece that cannot be fetched rejects with a WordsLoadError.

Import it

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

Definition

function findByMeaning(text: string, options?: FindOptions): Promise<Word[]>

Parameters

NameTypeDescription
textstring

English: water, go out.

options (optional)FindOptions

The mode, the lists, and the most words to give (10 unless given, and no more than 20).

Returns

Promise<Word[]>

The words, the ones whose gloss is exactly the text first (a word's first gloss before a later one), then the commonest; none when nothing matches.

Examples

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

const found = await findByMeaning("water", { limit: 5 });
console.log(found.map((one) => `${one.written} ${one.meaning}`)); // ["水 water; fluid; ...", ...]
[
  '水 water (esp. cool or cold); fluid (esp. in an animal tissue)',
  '水分 water, liquid, fluid',
  "水上 on the water, aquatic; waterside, water's edge",
  '注ぐ to pour (into); to sprinkle on (from above)',
  'お水 water, (drinking) water, (glass of) water'
]

What it prints (run when this page was built)

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