https://github.com/em429/d
d is a wrapper around dictd and gtranslate for lightning fast dictionary querying from the terminal
https://github.com/em429/d
acronym-identification command-line-tool dictionary etymology language-learning linguistics ruby thesaurus
Last synced: 3 months ago
JSON representation
d is a wrapper around dictd and gtranslate for lightning fast dictionary querying from the terminal
- Host: GitHub
- URL: https://github.com/em429/d
- Owner: em429
- Created: 2023-01-27T00:30:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T16:03:33.000Z (over 1 year ago)
- Last Synced: 2025-01-15T22:23:37.228Z (5 months ago)
- Topics: acronym-identification, command-line-tool, dictionary, etymology, language-learning, linguistics, ruby, thesaurus
- Language: Ruby
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# d
d is a wrapper around dictd and gtranslate for lightning fast dictionary querying from the terminal### Usage
Dependencies: ruby3, [translate-shell](https://github.com/soimort/translate-shell), dict
You can install dict from most package managers, e.g. `brew install dict`. Both `gtranslate` and `dict` must be in your $PATH, otherwise set `D_GTRANSLATE_BIN_PATH` and `D_DICT_BIN_PATH` environment variables.
```bash
chmod +x ./dd eng tur love
d thesaurus contextual
```#### Basic english only usage:
```
d define glee club
d thesaurus medium
d acronym LISA
```See the `dictd_mode_command` function below for the supported
modes; it's easy to add any that dictd supports.You can quickly translate arbitrary language to language pairs as well:
```
d eng hun to preen
d eng tur beautiful
d eng spa seaside
```Run `dictd -D` for a list of available language pairs.