Get synonyms and antonyms of words from Thesaurus.com, Datamuse API and AlterVista in your terminal, with rich output.
pip install synonym-cli
syn <word>
Returns more particular results about the given word. Uses Datamuse API.
for Web UI: https://wordwhisper.vercel.app
For other languages you can use --lang, -l command. To use this feature, you need to get an api key from here.
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.
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
> ...
-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
Contributions are welcome. If you want to contribute to this list send a pull request or just open a new issue.



