Reference · Look words up by reading, written form, English meaning, kanji or romaji
LoadWordsOptionstype
How loadWords is asked.
Import it
import type { LoadWordsOptions } from "@johnmorrisdotca/jisho/words";
Definition
type LoadWordsOptions = WordsOptions & {
readonly previous?: Words;
readonly romaji?: boolean;
readonly inflected?: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
mode (optional) | WordsMode | undefined |
|
block (optional) | readonly string[] | undefined | Readings and written forms to leave out, on top of the mode. A reading that several words share names all of them. Applied only when given. |
allow (optional) | readonly string[] | undefined | Readings and written forms to keep and nothing else, on top of the mode and the block list. Applied only when given; an empty list keeps none. |
previous (optional) | Words | undefined | Words loaded before, in the same mode: what they hold is kept, and pieces they came from are not fetched again. |
romaji (optional) | boolean | undefined | Read a text of Latin letters as romaji and load the kana it could be ( |
inflected (optional) | boolean | undefined | Also load the dictionary forms a text could be conjugated from (食べなかった loads 食べる), for |
Examples
import type { LoadWordsOptions } from "@johnmorrisdotca/jisho/words";
const options: LoadWordsOptions = { mode: "safe" };
console.log(options.mode);safeWhat it prints (run when this page was built)