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

ALIGN_LIMITSconstant

What segmentWord will work on: a word of up to 64 characters and a reading of up to 256. A longer word or reading is refused (null) rather than searched.

Import it

import { ALIGN_LIMITS } from "@johnmorrisdotca/hikidashi/align";

Also exported from: @johnmorrisdotca/hikidashi

Definition

const ALIGN_LIMITS: { readonly word: 64; readonly reading: 256; } = { word: 64, reading: 256 } as const

Members

NameTypeDescription
word64
reading256

Examples

import { ALIGN_LIMITS, segmentWord } from "@johnmorrisdotca/hikidashi/align";

console.log(ALIGN_LIMITS, segmentWord("字".repeat(ALIGN_LIMITS.word + 1), "じ"));
{ word: 64, reading: 256 } null

What it prints (run when this page was built)

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