リファレンス · 単語の完全な項目:すべての語義と、JMdictが記すことのすべて
referenceOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A cross-reference of a sense in its parts: JMdict writes one as the word, the reading and the number of the sense, apart by
"・", each of them optional (神, 神・かみ, 天神・6).
インポート
import { referenceOf } from "@johnmorrisdotca/jisho/entries";
定義
function referenceOf(text: string): Reference
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | An item of a sense's |
戻り値
Reference
The word to look up, its reading if it says one, and the sense number if it says one.
例
import { referenceOf } from "@johnmorrisdotca/jisho/entries";
console.log(referenceOf("天神・6")); // { written: "天神", reading: undefined, sense: 6 }
console.log(referenceOf("神・かみ・1").reading); // かみ{ written: '天神', reading: undefined, sense: 6 }
かみ出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。