Mongodb Caching Server to provide nodejs module for http://www.wordandphrase.info/frequencylist.asp
- Input: English Word
- Output: Rank (commonality)
- ie. Higher Number => Rarer Word.
git clone https://github.com/ptraverse/wordrank.git
cd wordrank
npm update
sudo npm start
sudo npm stop
In other words, "banana" is the 4,721st word in rarity in the "common" english language.
build and use demo.html
/* Start MongoDB server using conf file and add mongodb-rest for crud */ mongod -f ./mongod.conf && ./node_modules/mongodb-rest/bin/mongodb-rest
/* CLI Instructions */ mongo
/* Create if needed and use wordrank db */ use wordrank
/* Create wordrank collection */ db.words.insert( { word: "the", rank: "1" } )
- Full sentences
- Adding all the other info:
- Part of speech
- Rarity Overall/by Source ** { Spoken, Fiction, Magazines, Newspaper, Academic }
- Correlates / Synonyms
- Rarity "Category"
- Single/Multi Entry!? (homonyms, other definitions)
- Human Readable Definition
- Grammar
- Matrix - comparisons
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js foobar
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js aquatic
8355
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js the
1
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js archaic
13544
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js serendipity
24935
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js alphanumerical
philippe@ubuntu64:~/workspace/wordrank$ ./node_modules/phantomjs/bin/phantomjs ./scratch.js alphabet
9387
=======
/* post install mongo make db folder */
sudo mkdir -p /data/db
chown whoami
/data/db
/* mongodaemon start */ mongod -f ./mongod.conf && ./node_modules/mongodb-rest/bin/mongodb-rest
/* CLI / mongo / Create if needed and use wordrank db */
use wordrank
/* Create wordrank collection */ db.words.insert( { word: "ornithology", rank: "123456" } )