Access Oxford Dictionary using your CLI. Search for English word Synonyms, Actonyms, Examples, and Definitions right from your CLI. For fun, play a guessing game as well.
git clone https://github.com/thebiryaniboy/words-cli.git YOUR_PROJECT_NAME
First create a developer account with Oxford Dictionary. Generate APP_ID and APP_KEY. Set APP_ID and APP_KEY to process env.
From UNIX
export APP_ID='YOUR_ID'
export APP_KEY='YOUR_KEY'
From WINDOWS
SET APP_ID='YOUR_ID'
SET APP_KEY='YOUR_KEY'
From POWERSHELL
$env:APP_ID='YOUR_ID'
$env:APP_KEY='YOUR_KEY'
You search for Antonyms, Synonyms, Examples and Definitions from Oxford Dictionary
'Search for Antonyms'
node app -a WORD
node app --ant WORD
'Search for Synonyms'
node app -s WORD
node app --syn WORD
'Search for Examples'
node app -e WORD
node app --ex WORD
'Search for Definitions'
node app -d WORD
node app --def WORD
'Search for Every thing'
node app -f WORD
node app --dict WORD
Free version of the API do not have word of the day option. So cheerio has been used to scrap from Webster. If scrape fails a random word will be selected from the collection and displayed.
node app -w
node app --word
node app -p
node app --play
- You will start with a Synonym hint.
- You can only enter String of alphabets.
- Input Will be refined to lowercase before processing
- On every wrong answer, A new Hint will be displayed