An open API service indexing awesome lists of open source software.

https://github.com/fosslife/define

Get description of any word from merriam-webster on your CLI, in nice format!
https://github.com/fosslife/define

dictionary dictionary-api english english-learning

Last synced: 3 months ago
JSON representation

Get description of any word from merriam-webster on your CLI, in nice format!

Awesome Lists containing this project

README

          

# Define

a small cli tool that uses merriam-webster API to get the meaning of a word.
this tool doesn't scrape, it uses API so you'll need your own API key to work, it's fairly easy to get one.

## Get API key:
go to (dictionaryapi.com)[https://dictionaryapi.com/register/index]
fill in the basic information you need, here `Request API key (1)` will be `Collegiage Dictionary`. (2) can
be anything we just need (1).
And after that you should receive your KEY. export it like
```
export DICTIONARY_KEY="1234-1234-1234-etc"
```
or set in your `.bashrc` or `.zshrc` etc.

## Installation
if you have cargo installed, just run
```
cargo install --git https://github.com/fosslife/define
```

if you have cloned the repo locally you can also run
```
cargo install --path .
```

## Usage
```
defrs {word}
```

example:
```
$ defrs humanity
hu*man*i*ty | hyü-ˈma-nə-tē

Definition of humanity:
+ compassionate, sympathetic, or generous behavior or disposition : the quality or state of being humane
+ the quality or state of being human
+ human attributes or qualities
```

## Screenshots
![Image One](one.png "Sample 1")

![Image Two](two.png "Sample 2")

# License
This project is licensed under MIT