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

KanjiTestQuestiontype

One question of a test: the word, its reading, and the word cut into its segments, ready to be drawn as squares with the okurigana in brackets.

Import it

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

Also exported from: @johnmorrisdotca/hikidashi

Definition

type KanjiTestQuestion = ReadWord & {
    segments: WordSegment[];
};

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).

segmentsWordSegment[]

Examples

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

const [question]: KanjiTestQuestion[] = buildKanjiTest([{ word: "食べる", reading: "たべる" }], { seed: 3, count: 1 }).writing;
console.log(question?.reading, question?.segments.map((part) => `${part.text}(${part.kind})`).join(" "));
たべる 食(kanji) べる(okurigana)

What it prints (run when this page was built)

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