Reference
The dictionary forms a conjugated word could come from
import { … } from "@johnmorrisdotca/jisho/deinflect";
2.1 kB minified and gzipped, with everything it imports (measured with esbuild)
Deinflection: the dictionary forms a conjugated word could come from, and the path from there to it. 食べなかった is the
negative and then the past of 食べる. A rule table of a few hundred endings (written out from a few dozen templates) does the
walking, in no data and no network: it only proposes. Which proposals are real is for the dictionary to say, by the kind of
word each would have to be (see kinds of a Word), and findInflected and inflectedOf ask it.
Covered: godan and ichidan verbs, する (and a noun with する, 勉強した) and 来る (in kanji and kana), い adjectives, and な adjectives with だ, です and ではない; in the polite, negative, past, te, conditional, volitional, potential, passive, causative and causative-passive forms, with want-to (たい), looks-like (そう), too-much (すぎる), easy-to and hard-to, while (ながら) and the commonest verbs a te-form leads (ている, てしまう, ておく, てみる, ていく, てくる, てくれる, てあげる, てもらう), and chains of all of them. Not covered: the imperative, keigo verbs, 〜ず, 〜なければならない and nouns with だ.
Exports
| Name | Kind | What it is |
|---|---|---|
deinflect | function | The dictionary forms a written word could be conjugated from, with the path from each to the word: the endings are taken off one at a time, outermost first, as a learner does, so 食べなかった is the past of 食べない, which is the negative of 食べる. |
Deinflection | type | One way a written word could be a conjugated dictionary word. |
DeinflectKind | type | The kind of word a dictionary form must be, as the letters of a Word's kinds: g godan, i ichidan, a i-adjective, n na-adjective, s suru, k kuru. |