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

WORD_CLASSESconstant

The kinds of word a conjugated form can come from, each named by itself: godan and ichidan verbs, iAdjective, and the two irregular verbs suru (する) and kuru (来る). Compare a WordClass with these rather than with a string typed out.

Import it

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

Also exported from: @johnmorrisdotca/hikidashi

Definition

const WORD_CLASSES: { readonly godan: "godan"; readonly ichidan: "ichidan"; readonly iAdjective: "iAdjective"; readonly suru: "suru"; readonly kuru: "kuru"; } = {
    godan: "godan",
    ichidan: "ichidan",
    iAdjective: "iAdjective",
    suru: "suru",
    kuru: "kuru",
} as const

Members

NameTypeDescription
godan"godan"
ichidan"ichidan"
iAdjective"iAdjective"
suru"suru"
kuru"kuru"

Examples

import { WORD_CLASSES, dictionaryForms } from "@johnmorrisdotca/hikidashi/deinflect";

console.log(Object.values(WORD_CLASSES));
console.log(dictionaryForms("高くて").filter((one) => one.wordClass === WORD_CLASSES.iAdjective));
[ 'godan', 'ichidan', 'iAdjective', 'suru', 'kuru' ]
[ { base: '高い', wordClass: 'iAdjective' } ]

What it prints (run when this page was built)

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