nanov / rae-cli

A command-line tool to search and display Spanish word definitions from the Real Academia Española (RAE) dictionary.
MIT License
2 stars 0 forks source link
rae real-academia-espanola rust spanish spanish-language spanish-learning translation

Real Academia Española CLI Dictionary (rae-cli)

nanov

A command-line tool to search and display Spanish word definitions from the Real Academia Española (RAE) dictionary.

Installation

macOS - Homebrew

brew tap nanov/rae-cli
brew install rae-cli

Linux - Community Support Needed

Support and testing are needed for building distribution-specific packages. Contributions and feedback on this are welcome.

Windows - Community Support Needed

Support and testing are needed for packaging on Windows. Feedback on package managers and compatibility is appreciated.

Alternatively, download the latest release from releases, unzip, and place the executable in a directory included in your PATH environment variable for easy access.

Usage

Search for word definitions from the Real Academia Española.

rae-cli <palabra>

Arguments

Options

If the word is found, the tool will display its definition. If suggestions are available, a menu will appear for you to select the desired word. Looks like I sent that before I finished! Here’s the rest of the README:


Tips

For words with lengthy definitions (especially verbs, as full conjugation tables are displayed), combining rae-cli with a pager like less can make it easier to navigate.

You can add this alias to your .bashrc or .zshrc file to automatically use less for pagination:

function rae_cli () { rae-cli "$@" | less -fX }
alias rae=rae_cli

With this setup, typing rae will call rae-cli with less by default, allowing you to scroll through longer entries easily.


Copyleft

Dimitar Nanov, MIT license