🌾Get synonyms and antonyms of words from Thesaurus.com and other sources in your terminal, with rich output.
Project description
🌾 syn
Get synonyms and antonyms of words from Thesaurus.com, 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for synonym_cli-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f988acf95224efba85f1fedd852781ddcc3fad3dd21d22cf4f7464edbdf09ceb |
|
MD5 | 6a7f7d91b12d3dd22f4c0720c85bf462 |
|
BLAKE2b-256 | 3a26c32905c86e576a0797914ec56582cb6575b308e30ef310b74252f93730f4 |