loadWordListfunction
One list of one size read into words, or null for a size the language has no list of.
Import it
import { loadWordList } from "@johnmorrisdotca/kotoba/load";
Definition
function loadWordList(name: WordListName, size: number): Promise<LoadedWordList | null>
Parameters
| Name | Type | Description |
|---|---|---|
name | WordListName | The supported dictionary language identifier. |
size | number | The number of letters or kana in each word. |
Returns
Promise<LoadedWordList | null>
One list of one size read into words, or null for a size the language has no list of.
Examples
import { loadWordList } from "@johnmorrisdotca/kotoba/load";
console.log((await loadWordList("en",5))?.answers.length);2036What it prints (run when this page was built)