et
et copied to clipboard
A CLI/rofi/dmenu script with various features to aid you with English (spellchecking, definitions, synonyms, antonyms, abbreviations, and pronunciation)
et
A CLI/rofi/dmenu script with features to aid you with English.
Preview
rofi_et
dmenu_et
Features
- [x] Spellcheck and suggestions (offline, based on a wordlist)
- [x] Define (online, based on wordnik.com)
- [x] Synonyms (online, based on bighugelabs.com)
- [x] Antonyms (online, based on bighugelabs.com)
- [x] Abbreviations (online, based on Abbreviations.com)
- [x] Pronunciation (online, based on macmillandictionary.com)
Dependencies
The installation script won't install the dependencies for you because I don't know the package names on distros other than Arch
-
rofi
ordmenu
-
xclip
fromxclip
package on Arch => to copy selected spelling suggestion to clipboard -
notify-send
fromlibnotify
package on Arch => to notify you on copying a spelling suggestion to clipboard -
agrep
fromtre
package on Arch => to do fuzzy searching in the wordlist to get spelling suggestions -
sox
fromsox
package on Arch => to play pronunciation
Installation
- clone this repo =>
git clone https://github.com/PlankCipher/et.git
- cd into the cloned repo directory
- run
install.sh
=>./install.sh
- Voila 🎉
You will be asked to enter your password for sudo to move the executables to
/sbin/
so that they're accessible from anywhere
Usage
et
Usage: et OPTION [WORD]
Options:
-abr or --abbreviations
print what WORD might stand for from abbreviations.com. (WORD is required for this option)
-ant or --antonyms
print antonyms for WORD from bighugelabs.com. (WORD is required for this option)
-def or --define
print definitions for WORD from wordnik.com if correctly spelled, otherwise print spell suggestions. (WORD is required for this option)
-pro or --pronounce
play American English pronunciation of WORD from macmillandictionary.com. (WORD is required for this option)
-spl or --spell
print spell suggestions for WORD from wordlist if not spelled correctly (exits with 1 as exit code), otherwise print a message indicating that WORD is spelled correctly. (WORD is required for this option)
-syn or --synonyms
print synonyms for WORD from bighugelabs.com. (WORD is required for this option)
-h or --help
print this help message and exit
rofi_et or dmenu_et
Credits
- I got
words_alpha
wordlist from this repo. - wordnik.com is used to get definitions.
- abbreviations.com is used to get what abbreviations stand for.
- bighugelabs.com is used to get synonyms and antonyms.
- macmillandictionary.com is used to get American English pronunciation.
Contributions
Contributions are very welcome.