All Projects → smallwat3r → Synonym

smallwat3r / Synonym

Licence: mit
Find synonyms in 15 different languages directly from your terminal.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Synonym

Sultan
Sultan: Command and Rule over your Shell
Stars: ✭ 625 (+557.89%)
Mutual labels:  bash-script, cli, command-line
Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (-20%)
Mutual labels:  cli, command-line
Navi
An interactive cheatsheet tool for the command-line
Stars: ✭ 10,055 (+10484.21%)
Mutual labels:  cli, command-line
Window Size
Reliable way to to get the height and width of the terminal/console in a node.js environment.
Stars: ✭ 79 (-16.84%)
Mutual labels:  cli, command-line
Sandmap
Nmap on steroids. Simple CLI with the ability to run pure Nmap engine, 31 modules with 459 scan profiles.
Stars: ✭ 1,180 (+1142.11%)
Mutual labels:  cli, command-line
Github Files Fetcher
Download a specific folder or file from a GitHub repo through command line
Stars: ✭ 73 (-23.16%)
Mutual labels:  cli, command-line
Tsv Utils
eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
Stars: ✭ 1,215 (+1178.95%)
Mutual labels:  cli, command-line
Guaka
The smartest and most beautiful (POSIX compliant) Command line framework for Swift 🤖
Stars: ✭ 1,145 (+1105.26%)
Mutual labels:  cli, command-line
Lua cliargs
A command-line argument parsing module for Lua.
Stars: ✭ 84 (-11.58%)
Mutual labels:  cli, command-line
Pypistats
Command-line interface to PyPI Stats API to get download stats for Python packages
Stars: ✭ 86 (-9.47%)
Mutual labels:  cli, command-line
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (-5.26%)
Mutual labels:  cli, command-line
The forge
Our groundbreaking, lightning fast PWA CLI tool
Stars: ✭ 70 (-26.32%)
Mutual labels:  cli, command-line
Swiftline
Swiftline is a set of tools to help you create command line applications.
Stars: ✭ 1,156 (+1116.84%)
Mutual labels:  cli, command-line
Nexmo Cli
Nexmo CLI (Command Line Interface)
Stars: ✭ 73 (-23.16%)
Mutual labels:  cli, command-line
Pyinquirer
A Python module for common interactive command line user interfaces
Stars: ✭ 1,151 (+1111.58%)
Mutual labels:  cli, command-line
Pilgo
Configuration-based dotfiles manager
Stars: ✭ 78 (-17.89%)
Mutual labels:  cli, command-line
Run
⚡The resource runtime
Stars: ✭ 90 (-5.26%)
Mutual labels:  cli, command-line
Glab
An open-source GitLab command line tool bringing GitLab's cool features to your command line
Stars: ✭ 1,126 (+1085.26%)
Mutual labels:  cli, command-line
Tunnelblickctl
🔒 Command-line interface for Tunnelblick
Stars: ✭ 64 (-32.63%)
Mutual labels:  cli, command-line
Opaline
NextJS for CLI tools
Stars: ✭ 84 (-11.58%)
Mutual labels:  cli, command-line

synonym

Find synonyms in 15 different languages directly from your terminal.


synonym is a small utility tool to rapidly find synonyms directly from your terminal.
This util is querying the thesaurus.altervista.org API.

List of supported languages:

en, fr, cs, el, es, da, de, hu, it, no, pl, pt, ro, ru, sk

synonym

What do you need?

API key

You will need to generate an API key to use this script, you can do so at https://thesaurus.altervista.org/mykey
You can sign in with either Facebook or Google.
After the sign in process you will be redirected you to your API key.
You then need to store your API key in your .synonymrc file.

Installation

Using Homebrew

brew tap smallwat3r/scripts \
  && brew install synonym

Manual install

To run synonym you will need to install jq

brew install jq          # macos
sudo apt-get install jq  # debian / ubuntu

then

git clone https://github.com/smallwat3r/synonym.git \
  && cd synonym && sudo make install

or (without cloning)

sudo wget https://raw.githubusercontent.com/smallwat3r/synonym/master/synonym \
    -P /usr/local/bin && sudo chmod 755 /usr/local/bin/synonym

Configuration file

You will need to create a .synonymrc config file in one of the location below.

# Possible config file locations (in order of priority)

$XDG_CONFIG_HOME/.synonymrc
~/.config/.synonymrc
~/.synonymrc

In this file, you can chose a default language and you will need to input your API key.

# .synonymrc example

# API KEY https://thesaurus.altervista.org/mykey
SYNONYM_THESAURUS_KEY=<API KEY>

# Default language
# List of languages supported:
#   en, fr, cs, el, es, da, de, hu,
#   it, no, pl, pt, ro, ru, sk
SYNONYM_SEARCH_LANG=en

Note: if no language is set in .synonymrc, or specified in parameters, the default language will be fetched from the os ($LANGUAGE or $LANG). If not supported by the API, or null, it will be set as default to en_US.

You are now all set-up to run synonym in your terminal.

How to use it?

$ synonym -h
Usage: synonym [OPTION] WORD

Finds synonyms for a given word in a specified language.
Run synonym -i for more information.

Options:
  -l LANG      Finds all synonyms for this specific language.
               Languages supported: en, fr, cs, el, es, da, de,
               hu, it, no, pl, pt, ro, ru, sk
  -h           Show help message and exit.
  -i           Show more help information and exit.
  -v           Show program version number and exit.

Examples

$ synonym happy
blessed         cheerful        elated          felicitous      glad            joyful          prosperous      well-chosen
blissful        content         euphoric        fortunate       golden          joyous          riant           willing 
bright          contented       felicitous      glad            halcyon         laughing        unhappy 

$ synonym -l fr joyeux
agréable        badin           content         éclatant        étincelant      hilarant        plaisant        ravi            rieur
aise            beau            désopilant      enchanté        fun             joie            plaisir         rayonnant       satisfait
allègre         brillant        distrayant      enjoué          gai             jovial          radiant         réjoui          spirituel
amusant         comblé          divertissant    ensoleillé      guilleret       jubilant        radieux         réjouissant
amusement       comique         drôle           épanoui         heureux         lumineux        rassasié        riant

$ synonym -l it allegro 
beato           felice          gaudioso        giocoso         gioviale        lieto
contento        gaio            giocondo        gioioso         ilare           raggiante
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].