Kotoba documentation
Kotoba 言葉 — Word lists and word-game rules
Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.
Install
npm install @johnmorrisdotca/kotoba
Start here
Entry points
| Import it | What it is | Size |
|---|---|---|
@johnmorrisdotca/English words · 1 exports | 74.3 kB | |
@johnmorrisdotca/French words · 1 exports | 51.1 kB | |
@johnmorrisdotca/German words · 1 exports | 58.8 kB | |
@johnmorrisdotca/Pop-culture answers · 2 exports | 9.4 kB | |
@johnmorrisdotca/Pop-culture guesses · 1 exports | 49.9 kB | |
@johnmorrisdotca/Three-kana words · 1 exports | 40.6 kB | |
@johnmorrisdotca/Four-kana words · 1 exports | 113.6 kB | |
@johnmorrisdotca/Five-kana words · 1 exports | 121.0 kB | |
@johnmorrisdotca/Command line · 6 exports | 469.1 kB | |
@johnmorrisdotca/Load dictionaries · 5 exports | 461.2 kB | |
@johnmorrisdotca/Playable game · 6 exports | 472.5 kB | |
@johnmorrisdotca/Game element · 4 exports | 474.8 kB | |
@johnmorrisdotca/Register the game · 4 exports | 474.8 kB | |
@johnmorrisdotca/Marking, scores and game rules · 66 exports | Kotoba: word lists and the rules of word games, in English, French, German and Japanese. | 8.2 kB |
Guides
How-to
- Load only the needed word listsChoose direct or lazy imports and preserve the data credits.
- Choose a stable daily wordPin the ordered word pool and define the calendar boundary.
- Mark guesses and score a roundHandle repeated letters before awarding place and speed points.
- Type and mark kanaKeep unfinished romaji and distinguish size, voicing and family.
- Embed the native word gameMount a game, scope keyboard input and clean up its listeners.
Explanation
- CLI boundaries and host validationUse the async CLI result and native state rather than display claims.
- Architecture and packed dataSeparate pure rules, optional dictionaries and native rendering.