Skip to the content

Kotoba言葉

Load only the word lists you need, mark repeated letters correctly and play a daily or seeded word game.

Kotoba is the Japanese word for words. About the name

Contents

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

NameTypeDescription
wordstring

The word, in any case.

words (optional)WordListName

The list the word is from; any but "en" has no meanings here and gives null.

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 objects

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kotoba 1.11.0.