Updated batch.js for 10 words

Added import.js to import dictionary
Updated license with WordNet info
Updated puzzles.js and script for 10 words
This commit is contained in:
Russell Beattie
2013-03-12 15:10:46 -07:00
parent 7eefd5e55e
commit b8e7d91a3c
10 changed files with 33707 additions and 23581 deletions

34
utils/README.md Normal file
View File

@@ -0,0 +1,34 @@
# Utils
The utils directory contain Node.js Javascript files to create a word dictionary and generate a puzzle.
* import.js - Imports Princeton's WordNet open dictionary database files into a words.txt file
* batch.js - Creates a new puzzle.js file containing 999 word puzzles from the words.txt file created above.
# import.js instructions
Imports and cleans dictionary files provided by WordNet 3.0
Download dictionary file (look for "DATABASE FILES ONLY" package):
http://wordnet.princeton.edu/wordnet/download/current-version/
Decompress and copy data.adj, data.adv, data.noun and data.verb files
to same directory as this script, then run:
$ node import.js
This will produce a words.txt dictionary file of 4-10 letter words
to be used by batch.js puzzle generator.
# batch.js instructions
After creating a words.txt dictionary, run:
$ node batch.js
This will create a puzzles.js file in the root directory of the project.