Reference
Load dictionaries
import { … } from "@johnmorrisdotca/kotoba/load";
461.2 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
LoadedWordList | type | A list read into words: the easy answers inside the answers inside the words that may be guessed. |
loadWordList | function | One list of one size read into words, or null for a size the language has no list of. |
WORD_LIST_NAMES | constant | The lists, in the order they are named. |
WORD_LIST_SIZES | constant | The sizes each list comes in: four to six letters, or three to five kana. |
WordListName | type | The languages that have a list to load: English, French, German, and Japanese kana. |