リファレンス · 読み、表記、英語の意味、漢字、ローマ字から単語を引く
studyList関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The words of a text that was read, once each in the order they came, each with how often it came and the form it first came in. Unknown stretches and things that are not Japanese are not words and are left out.
インポート
import { studyList } from "@johnmorrisdotca/jisho/words";
定義
function studyList(result: ReadResult, options?: { readonly kanjiOnly?: boolean; }): StudyRow[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
result | ReadResult | What |
options (省略可) | { readonly kanjiOnly?: boolean; } |
|
戻り値
StudyRow[]
The rows.
例
import { readText, studyList } from "@johnmorrisdotca/jisho/words";
const rows = studyList(await readText("食べた。食べない。"));
console.log(rows.map((row) => `${row.written} ${row.count}`)); // ["食べる 2"][ '食べる 2' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。