リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
meaningFrom関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { meaningFrom } from "@johnmorrisdotca/jisho/words";
定義
function meaningFrom(senses: readonly Sense[]): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
senses | readonly Sense[] | The senses, in order. |
戻り値
string
The meaning, or an empty text for no senses.
例
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 page出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。