🌾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, 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.
for Web UI: https://wordwhisper.vercel.app
$ 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.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1db4f8fd36d4e71997217358674a1372cb2ff172584a04ef3823e425b457f2a6 |
|
MD5 | 818968a1bcab0725c0f9f077d8bcfc81 |
|
BLAKE2b-256 | 96a9e9912ccecc364ae413d6e6138e8eda591e87d48608bfe88d81207d91f320 |