リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
meaningOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { meaningOf } from "@johnmorrisdotca/jisho/words";
定義
function meaningOf(words: Words, text: string, options?: LookupOptions): string | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
words | Words | What |
text | string | A reading or a written form that was loaded. |
options (省略可) | LookupOptions |
|
戻り値
string | null
The meaning, or null.
例
import { loadWords, meaningOf } from "@johnmorrisdotca/jisho/words";
console.log(meaningOf(await loadWords(["紙"]), "紙")); // paperpaper出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。