本文へ移動

Kotoba言葉

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

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

目次

リファレンス · 英語の単語

EN_WORDS定数

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

THE ENGLISH WORDS FOR GOMOJI. Written by scripts/word-lists.mjs from SCOWL 2020.12.07 (http://wordlist.aspell.net/), read 2026-09-25: answers from sizes 10–35 (easy: 10–20), guesses from sizes 10–70, English and American spellings. Never edited by hand; run the script again instead.

SCOWL's notice, which its licence asks to travel with the lists:

The collective work is Copyright 2000-2018 by Kevin Atkinson as well as any of the copyrights mentioned below:

Copyright 2000-2018 by Kevin Atkinson

Permission to use, copy, modify, distribute and sell these word lists, the associated scripts, the output created from the scripts, and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Kevin Atkinson makes no representations about the suitability of this array for any purpose. It is provided "as is" without express or implied warranty.

インポート

import { EN_WORDS } from "@johnmorrisdotca/kotoba/words-en";

定義

const EN_WORDS: Record<number, { easy: string; answers: string; allowed: string; }>

例

import { EN_WORDS } from "@johnmorrisdotca/kotoba/words-en";
console.log(Object.keys(EN_WORDS));
[ '4', '5', '6' ]

出力(このページを作ったときに実行した結果)

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

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