Reference · Look words up by reading, written form, English meaning, kanji or romaji
meaningFromfunction
The short English meaning of some senses: up to two senses of up to three glosses, ", " between glosses and "; " between senses, cut at a whole gloss inside 60 characters. A lookup makes the meaning of each word this way from the senses it has, and a tool that leaves senses out makes it again from the senses that are left.
Import it
import { meaningFrom } from "@johnmorrisdotca/jisho/words";
Definition
function meaningFrom(senses: readonly Sense[]): string
Parameters
| Name | Type | Description |
|---|---|---|
senses | readonly Sense[] | The senses, in order. |
Returns
string
The meaning, or an empty text for no senses.
Examples
import { meaningFrom } from "@johnmorrisdotca/jisho/words";
console.log(meaningFrom([{ marks: [], glosses: ["paper"] }, { marks: ["col"], glosses: ["a sheet", "a page"] }])); // paper; a sheet, a pagepaper; a sheet, a pageWhat it prints (run when this page was built)