Giter VIP home page Giter VIP logo

words-cli's Introduction

words-cli

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.

Installation

git clone https://github.com/thebiryaniboy/words-cli.git YOUR_PROJECT_NAME

Pre-requisites

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'

Usage

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

Word of the day

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

Play a Guessing Game

node app -p
node app --play 

Rules of the Game :

  1. You will start with a Synonym hint.
  2. You can only enter String of alphabets.
  3. Input Will be refined to lowercase before processing
  4. On every wrong answer, A new Hint will be displayed

License

MIT

words-cli's People

Contributors

ghimakarreddy avatar

Watchers

Himakar Reddy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.