Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.95 KB

README.md

File metadata and controls

64 lines (41 loc) · 1.95 KB

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

  • <palabra>: The word you want to search for.

Options

  • -h, --help: Display help.
  • -V, --version: Display the version number.

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