GithubHelp home page GithubHelp logo

cmdtl's Introduction

cmdtl

Generate api_key at https://fourtytwowords.herokuapp.com and store it in .env file.

  1. Word Definitions

         node defn <word>
    

Display definitions of a given word.

  1. Word Synonyms

         node syn <word>
    

Display synonyms of a given word.

  1. Word Antonyms

         node ant <word>
    

Display antonyms of a given word. Note that not all words would have Antonyms (End point: /relatedWords). Example words with antonyms: single, break, start.

  1. Word Examples

         node ex <word>
    

Display examples of usage of a given word in a sentence.

  1. Word Full Dict

         node index.js <word>
    

Display Word Definitions, Word Synonyms, Word Antonyms & Word Examples for a given word.

  1. Word of the Day Full Dict

         node index.js
    

Display Word Definitions, Word Synonyms, Word Antonyms & Word Examples for a random word.

  1. Word Game

         node play
    

The command should display a definition, a synonym or an antonym and ask the user to guess the word.

Rules:

  • If the correct word is entered, show success message
  • Any synonyms of the word(expected answer) should be also be accepted as a correct answer.
  • If incorrect word is entered, user should be given 3 choices:
    • (1) Try again

      Let the user try again.

    • (2) Hint

      Display a hint, and let the user try again. Hints could be:

        1. Displays the word randomly jumbled (cat => atc, tac, tca)
        
        2. Displays another definition of the word
        
        3. Displays another antonym of the word
        
        4. Displays another synonym of the word
      
    • (3) Quit

       Displays the Word, Word Full Dict , and quit.
      

cmdtl's People

Contributors

rasheed27 avatar

Watchers

 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.