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

UNKNOWN_KANJI_COSTconstant

What a kanji costs when nothing is known about it: 20, the most any kanji costs.

Import it

import { UNKNOWN_KANJI_COST } from "@johnmorrisdotca/hikidashi/difficulty";

Also exported from: @johnmorrisdotca/hikidashi

Definition

const UNKNOWN_KANJI_COST: 20 = 20

Examples

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

console.log(UNKNOWN_KANJI_COST, kanjiCost(null), kanjiCost({ grade: null, frequencyRank: null }));
20 20 20

What it prints (run when this page was built)

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