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 · Sentence difficulty

KanjiDifficultySourcetype

What your dictionary knows about a kanji, which kanjiCost turns into a cost. KANJIDIC2 holds both fields.

Import it

import type { KanjiDifficultySource } from "@johnmorrisdotca/hikidashi/difficulty";

Also exported from: @johnmorrisdotca/hikidashi

Definition

type KanjiDifficultySource = {
    grade: number | null;
    frequencyRank: number | null;
};

Members

NameTypeDescription
gradenumber | null

The school grade: 1 to 6 for elementary, 8 for the rest of the jōyō kanji, 9 and 10 for name kanji (KANJIDIC2's numbering). Null when ungraded.

frequencyRanknumber | null

How common the kanji is, 1 being the most common. Null when not ranked.

Examples

import { kanjiCost, type KanjiDifficultySource } from "@johnmorrisdotca/hikidashi/difficulty";

const water: KanjiDifficultySource = { grade: 1, frequencyRank: 223 };
console.log(kanjiCost(water));
1

What it prints (run when this page was built)

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