英語辞書の単語のリストが必要な単純な JS ゲームを作成しています。自分でリストを作成する必要がありますか、それともシステムまたはブラウザのスペルチェック辞書にアクセスできますか? あるいは別の解決策があるのでしょうか?
10 に答える
Aspell英和辞書が利用できます。
Aspell の英語辞書はftp://ftp.gnu.org/gnu/aspell/dict/0index.htmlで入手できます。
Aspell ディクショナリ チェックアウトからワールド リストをダンプするには:
- https://superuser.com/questions/137957/how-to-convert-aspell-dictionary-to-simple-list-of-words
- http://www.commandlinefu.com/commands/view/10619/dump-an-aspell-dictionary-as-a-word-list
- http://aspell.net/man-html/Dumping-the-Contents-of-the-Word-List.html
英語の単語リストをダンプするコマンドは次のようになります。
aspell -d en dump master | aspell -l en expand > words.txt
Firefox スペルチェックの単語リストは、次のリポジトリから取得されているようです: https://github.com/marcoagpinto/aoo-mozilla-en-dict。そこからダウンロードして、単語リストを取得できます。
辞書をアドオンとしてインストールすることもできます ( https://addons.mozilla.org/en-GB/firefox/language-tools/ ) 。ブラウザ内。
ここで worlist を取得できますhttp://marcoagpinto.cidadevirtual.pt/proofingtoolgui.html .. 右側の WORDLIST リンクを探します
これは、42,812 単語のベースを使用したランダム単語ジェネレーターです。
https://github.com/adamjgrant/Random-English-Word-Generator-42k-Words-