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

onlyWordsfunction

Only the words named on a list. A list names a word by its reading or by a written form, and a kana in either is the same in hiragana and katakana. An empty list names none, so no word is left.

Import it

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

Definition

function onlyWords(words: readonly Word[], list: readonly string[]): Word[]

Parameters

NameTypeDescription
wordsreadonly Word[]

The words a lookup returned.

listreadonly string[]

Readings and written forms to keep.

Returns

Word[]

The words that are named, in the same order.

Examples

import { loadWords, onlyWords, wordsOf } from "@johnmorrisdotca/jisho/words";

const words = await loadWords("かみ");
console.log(onlyWords(wordsOf(words, "かみ"), ["紙", "髪"]).map((one) => one.written)); // ["紙", "髪"]
[ '紙', '髪' ]

What it prints (run when this page was built)

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