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

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

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 ./d

d 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.