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

studyListTextfunction

A study list as text: csv has a header line and quotes what needs it, for a spreadsheet; tsv has no header and tabs, to paste into a spreadsheet or to import into a flashcard program. Lines end with a line feed; an empty level or grade is an empty field.

Import it

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

Definition

function studyListText(rows: readonly StudyRow[], format: "csv" | "tsv"): string

Parameters

NameTypeDescription
rowsreadonly StudyRow[]

From studyList.

format"csv" | "tsv"

"csv" or "tsv".

Returns

string

The text, ending in a line feed, or empty for no rows.

Examples

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

const row = { written: "水", reading: "みず", meaning: "water", level: "N5", grade: 1, count: 1, example: "水" } as const;
console.log(studyListText([row], "csv")); // written,reading,meaning,level,grade,count,example ...
written,reading,meaning,level,grade,count,example
水,みず,water,N5,1,1,水

What it prints (run when this page was built)

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