一个游戏的英文单词的JavaScript列表 [英] javascript list of english words for a game

查看:265
本文介绍了一个游戏的英文单词的JavaScript列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个简单的JS游戏,需要一个英文字典单词列表。我需要自己建立列表,还是可以访问系统或浏览器的拼写检查字典 - 或者还有其他解决方案?

I'm making a simple JS game that needs a list of English dictionary words. Will I need to build the list myself, or is it possible to access the system's or browser's spell-check dictionary - or maybe there's another solution?

推荐答案

Firefox spellchecking的单词列表似乎来自此存储库: https:// github.com/marcoagpinto/aoo-mozilla-en-dict 。所以你可以下载它来获得一个单词列表。

The wordlist for Firefox spellchecking seems to come from this repository: https://github.com/marcoagpinto/aoo-mozilla-en-dict. So you could download it there to get a word list.

您还可以将该字典安装为addon( https://addons.mozilla.org/en-GB/firefox/language-tools/ )但是我不知道或者如何使用JavaScript直接从浏览器中访问字典 - 插件。

You can also install the dictionary as addon (https://addons.mozilla.org/en-GB/firefox/language-tools/) but I don't know if or how the dictionary-addons can be accessed with JavaScript directly from inside the browser.

这篇关于一个游戏的英文单词的JavaScript列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆