Skip to the content

Hikidashi引き出し

Era dates (和暦) and kanji numerals both ways, the dictionary forms of a conjugated word, a reading shared out over its kanji, words pulled from pasted text, and how hard a sentence is to read.

Hikidashi (引き出し) is a drawer: each tool is pulled out when it is wanted. About the name

Contents

Reference · Reading alignment

ReadWordtype

A word and its reading in hiragana: what buildKanjiTest takes a list of, and what kanjiAsWord makes.

Import it

import type { ReadWord } from "@johnmorrisdotca/hikidashi/align";

Also exported from: @johnmorrisdotca/hikidashi

Definition

type ReadWord = {
    word: string;
    reading: string;
};

Members

NameTypeDescription
wordstring

The word as it is written, with at least one kanji.

readingstring

How it is read, in hiragana (katakana is read the same).

Examples

import { buildKanjiTest, type ReadWord } from "@johnmorrisdotca/hikidashi/align";

const words: ReadWord[] = [{ word: "水", reading: "みず" }, { word: "食べる", reading: "たべる" }];
console.log(buildKanjiTest(words, { seed: 1, count: 1 }).writing.map((question) => question.word));
[ '水' ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hikidashi 1.1.0.