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

kanjiInfunction

The kanji in a piece of text, once each, in the order they first appear.

Import it

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

Definition

function kanjiIn(text: string): string[]

Parameters

NameTypeDescription
textstring

Any text.

Returns

string[]

The kanji in it; kana, Latin letters and punctuation are left out.

Examples

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

console.log(kanjiIn("日本語を日本で")); // ["日", "本", "語"]
[ '日', '本', '語' ]

What it prints (run when this page was built)

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