Reference · What an English word means
englishMeaningfunction
What an English word means, in a short line, or null for a word with no meaning to show: one WordNet has no entry for, a
word of the other languages, or one left out because it is not for children. The shape is the board's meanings option.
Import it
import { englishMeaning } from "@johnmorrisdotca/kotoba/meanings-en";
Definition
function englishMeaning(word: string, words?: WordListName): Promise<string | null>
Parameters
| Name | Type | Description |
|---|---|---|
word | string | The word, in any case. |
words (optional) | WordListName | The list the word is from; any but |
Returns
Promise<string | null>
The line, such as "lifts and moves heavy objects", or "plural of cow: …" for a plural, or null.
Examples
import { englishMeaning } from "@johnmorrisdotca/kotoba/meanings-en";
console.log(await englishMeaning("crane"));lifts and moves heavy objectsWhat it prints (run when this page was built)