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 · Dictionary forms

LONGEST_ENDINGconstant

The longest ending, in characters, that any rule strips, so a caller matching words in running text knows how far past a dictionary word to look for its conjugation.

Import it

import { LONGEST_ENDING } from "@johnmorrisdotca/hikidashi/deinflect";

Also exported from: @johnmorrisdotca/hikidashi

Definition

const LONGEST_ENDING: number = Math.max(...RULES.map((rule) => Array.from(rule.from).length))

Examples

import { LONGEST_ENDING } from "@johnmorrisdotca/hikidashi/deinflect";

console.log(LONGEST_ENDING);
7

What it prints (run when this page was built)

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