Reference · Look words up by reading, written form, English meaning, kanji or romaji
meaningOffunction
The meaning of the commonest word a text has, or null: a text with no word, or none that the mode and the lists let through, has no meaning, and the answer is never a placeholder.
Import it
import { meaningOf } from "@johnmorrisdotca/jisho/words";
Definition
function meaningOf(words: Words, text: string, options?: LookupOptions): string | null
Parameters
| Name | Type | Description |
|---|---|---|
words | Words | What |
text | string | A reading or a written form that was loaded. |
options (optional) | LookupOptions |
|
Returns
string | null
The meaning, or null.
Examples
import { loadWords, meaningOf } from "@johnmorrisdotca/jisho/words";
console.log(meaningOf(await loadWords(["紙"]), "紙")); // paperpaperWhat it prints (run when this page was built)