GithubHelp home page GithubHelp logo

josephuspaye / lookup-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 14 KB

Look up definitions, synonyms, and related words from online sources on the command line.

License: MIT License

TypeScript 84.04% JavaScript 15.96%
dictionary thesaurus cli-app nodejs createweekly

lookup-cli's Introduction

Lookup CLI

๐Ÿ“– Look up definitions, synonyms, and related words from online sources on the command line. The current available source is WordWeb Online.

This project is part of #CreateWeekly, my attempt to create something new publicly every week in 2020.

Installation

npm install -g @josephuspaye/lookup-cli

Examples

Look up definitions

The following command looks up definitions of the word "reticent":

lookup reticent

And yields the following output when ran:

View output
Looking up "reticent"...

Adjective: reticent

  1. Temperamentally disinclined to talk
     - untalkative

  2. Cool and formal in manner
     - restrained, unemotional

  3. Reluctant to draw attention to yourself
     - self-effacing, retiring

See also: taciturn, unassertive, undemonstrative

Look up definitions with related words

When looking up definitions, you can choose to include related words in the following categories:

  • soundsLike
  • derivedForms
  • seeAlso
  • partOf
  • typeOf
  • antonyms
  • all (include all related words)

The following commands finds definitions and soundsLike, derivedForms, typeOf, and partOf relations for the word "bee":

lookup bee -i soundsLike,derivedForms,typeOf,partOf

And yields the following output when ran:

View output
Looking up "bee"...

Noun: bee

  1. Any of numerous hairy-bodied insects including social and solitary species

  2. A social gathering to carry out some communal task or to hold competitions

Sounds like: be, B

Derived forms: bees

Type of: hymenopter, hymenopteran, hymenopteron, hymenopterous insect, social affair, social gathering

Part of: Apoidea, superfamily Apoidea

Usage

lookup --help
Description
  Find definitions, synonyms, and related words for the given word.

Usage
  $ lookup <word> [options]

Options
  -i, --include    Include related words: one or more of `soundsLike`, `derivedForms`, `seeAlso`, `typeOf`, `partOf`, or `antonyms`, separated by a comma, or `all`  (default derivedForms,seeAlso,antonyms)
  -v, --version    Displays current version
  -h, --help       Displays this message

Examples
  $ lookup flag
  $ lookup flag -i derivedForms,seeAlso,antonyms

Licence

MIT

lookup-cli's People

Contributors

josephuspaye avatar

Watchers

 avatar  avatar  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.