Skip to content
/ rae-cli Public

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

License

Notifications You must be signed in to change notification settings

nanov/rae-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages