本文へ移動

Kotoba言葉

必要な単語一覧だけを読み込み、重複する文字を正しく判定し、日替わりやシード付きの単語ゲームを遊べます。

「Kotoba」は「言葉」です。 名前について(英語)

目次

リファレンス

辞書の読み込み

import { … } from "@johnmorrisdotca/kotoba/load";

最小化と gzip 圧縮をしたサイズは 461.2 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
LoadedWordList型A list read into words: the easy answers inside the answers inside the words that may be guessed.
loadWordList関数One list of one size read into words, or null for a size the language has no list of.
WORD_LIST_NAMES定数The lists, in the order they are named.
WORD_LIST_SIZES定数The sizes each list comes in: four to six letters, or three to five kana.
WordListName型The languages that have a list to load: English, French, German, and Japanese kana.

ソースを見るGitHub で編集@johnmorrisdotca/kotoba 1.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。