javascript list of english words for a game

You can use Aspell English dictionary.
Aspell English dictionary is availabe at: ftp://ftp.gnu.org/gnu/aspell/dict/0index.html.

To dump world list from the Aspell dictionary checkout:

  • 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

The command to dump English list of words should look something like:

aspell -d en dump master | aspell -l en expand > words.txt

with node you can install random-words

npm install random-words

import it and you're done:

var randomWords = require('random-words');
console.log(randomWords());

requirebin