🌾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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b42496d0bd92dd580c718f61d71c0be2b28c7eebfe53ab91480bf6b29a485a7f |
|
MD5 | 39a3e05f69f0b459c43286f05a401d3a |
|
BLAKE2b-256 | 44ef042089577eb5c2b521beebb02c135f39e57368f43a3fa6dc93cd4d21f093 |