Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agmmnn/syn
๐พ Get synonyms and antonyms of words from Thesaurus.com and other sources in your terminal, with rich output.
https://github.com/agmmnn/syn
cli command-line datamuse dictionary linguistics python rich synonyms terminal thesaurus wordsearch
Last synced: 14 days ago
JSON representation
๐พ Get synonyms and antonyms of words from Thesaurus.com and other sources in your terminal, with rich output.
- Host: GitHub
- URL: https://github.com/agmmnn/syn
- Owner: agmmnn
- Created: 2021-09-21T12:02:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T14:28:51.000Z (about 1 year ago)
- Last Synced: 2024-10-11T12:45:44.334Z (about 1 month ago)
- Topics: cli, command-line, datamuse, dictionary, linguistics, python, rich, synonyms, terminal, thesaurus, wordsearch
- Language: Python
- Homepage: https://pypi.org/project/synonym-cli/
- Size: 144 KB
- Stars: 31
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐พ syn
Get synonyms and antonyms of words from [Thesaurus.com](https://www.thesaurus.com/), [Datamuse API](https://www.datamuse.com/api/) and [AlterVista](https://thesaurus.altervista.org/) in your terminal, with [rich](https://github.com/Textualize/rich) output.
# Install:
```
pip install synonym-cli
```## Usage:
```
syn
```### Explore Mode
Returns more particular results about the given word. Uses [Datamuse API](https://www.datamuse.com/api/).
> for Web UI: https://wordwhisper.vercel.app
`$ syn dominant -d`
![](https://github.com/agmmnn/syn/assets/16024979/a9ba9df5-bad0-421a-abea-163d11c37f1d)### Other Languages
For other languages you can use `--lang`, `-l` command. To use this feature, you need to get an api key from [here](https://thesaurus.altervista.org/openapi).
`$ syn -l fr belle`
![](https://user-images.githubusercontent.com/16024979/209144768-0cde6709-65d9-4142-9eae-bb4bc38e4a13.png)`$ syn -l ru ััะฐะทะฐ`
![](https://user-images.githubusercontent.com/16024979/209144765-abca9b54-5495-4295-98f7-15acdbde7623.png)> 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 ` 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
--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.