Skip to main content

🌾Get synonyms and antonyms of words from Thesaurus.com and other sources in your terminal, with rich output.

Project description

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.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synonym_cli-0.3.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

synonym_cli-0.3.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file synonym_cli-0.3.1.tar.gz.

File metadata

  • Download URL: synonym_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Darwin/23.0.0

File hashes

Hashes for synonym_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5286cc51849562d3ff8634a31c406b31173b6091a061355ee951ef24a1fe5ecb
MD5 705facd30b51a608a5e7e1a3388331ff
BLAKE2b-256 712519c55360fe18d9b96602a23f88718b26d656b4dc4144869d6e1a030b7c1f

See more details on using hashes here.

File details

Details for the file synonym_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: synonym_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.12.0 Darwin/23.0.0

File hashes

Hashes for synonym_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b42496d0bd92dd580c718f61d71c0be2b28c7eebfe53ab91480bf6b29a485a7f
MD5 39a3e05f69f0b459c43286f05a401d3a
BLAKE2b-256 44ef042089577eb5c2b521beebb02c135f39e57368f43a3fa6dc93cd4d21f093

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page