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

KanjiTesttype

A test: words to write in kanji from their readings, then different words to read. Made by buildKanjiTest.

Import it

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

Also exported from: @johnmorrisdotca/hikidashi

Definition

type KanjiTest = {
    writing: KanjiTestQuestion[];
    reading: KanjiTestQuestion[];
};

Members

NameTypeDescription
writingKanjiTestQuestion[]
readingKanjiTestQuestion[]

Examples

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

const test: KanjiTest = buildKanjiTest([{ word: "水", reading: "みず" }, { word: "火", reading: "ひ" }], { seed: 9, count: 1 });
console.log(test.writing.length, test.reading.length, test.writing[0]?.word !== test.reading[0]?.word);
1 1 true

What it prints (run when this page was built)

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