リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
kanaFromRomaji関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every hiragana text a romaji can read as, the usual first: one, unless it writes a long vowel with a macron or a circumflex, which a reading writes more than one way. At most eight. A text that is not romaji, or has a sound romaji has no kana for, gives none.
インポート
import { kanaFromRomaji } from "@johnmorrisdotca/jisho/words";
定義
function kanaFromRomaji(text: string): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | Romaji: |
戻り値
string[]
The readings, the usual first; none when it is not romaji.
例
import { kanaFromRomaji } from "@johnmorrisdotca/jisho/words";
console.log(kanaFromRomaji("kōhī")); // ["こうひい", "こうひー", "こーひい", "こーひー", ...]
console.log(kanaFromRomaji("Hello!")); // [][ 'こうひい', 'こーひー', 'こうひー', 'こおひい', 'こおひー', 'こーひい' ]
[]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。