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!
- Host: GitHub
- URL: https://github.com/fosslife/define
- Owner: fosslife
- License: apache-2.0
- Created: 2021-03-26T17:40:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-19T16:21:31.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T22:32:15.341Z (6 months ago)
- Topics: dictionary, dictionary-api, english, english-learning
- Language: Rust
- Homepage:
- Size: 1.55 MB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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

# License
This project is licensed under MIT