Giter VIP home page Giter VIP logo

synonym-cli's Introduction

synGitHub release PyPI PyPI

🌾 syn

Get synonyms and antonyms of words from Thesaurus.com, Datamuse API and AlterVista in your terminal, with rich output.

Install:

pip install synonym-cli

Usage:

syn <word>

Explore Mode

Returns more particular results about the given word. Uses Datamuse API.

$ syn dominant -d

Other Languages

For other languages you can use --lang, -l command. To use this feature, you need to get an api key from here.

$ syn -l fr belle

$ syn -l ru фраза

AlterVista's Thesaurus API supports the following languages:

Czech: cs, Danish: da, English (US): en, French: fr, German (Germany): de, German (Switzerland): de, Greek: el, Hungarian: hu, Italian: it, Norwegian: no, Polish: pl, Portuguese: pt, Romanian: ro, Russian: ru, Slovak: sk, Spanish: es.

Set Default Language

You can set the default language with the --setlang <lang_code> argument, so you don't have to give the -l argument every time.

$ syn --setlang fr
> default language is: fr
$ syn belle
> ...

Arguments

  -h, --help      show this help message and exit
  -p, --plain     returns plain text output
  -l, --lang      <language>
  --setkey        set apikey for altervista api
  --setlang       set default language (currently default is 'en')
  --show          show settings file
  -v, --version   show program's version number and exit

Contrubuting

Contributions are welcome. If you want to contribute to this list send a pull request or just open a new issue.

synonym-cli's People

Contributors

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