- Spellcheck and suggestions (offline, based on a wordlist)
- Define (online, based on wordnik.com)
- Synonyms (online, based on bighugelabs.com)
- Antonyms (online, based on bighugelabs.com)
- Abbreviations (online, based on abbreviations.com)
- Pronunciation (online, based on wordnik.com and dictionaryapi.dev)
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
from thexclip
package (X) orwl-copy
from thewl-clipboard
(Wayland) package on Arch => to copy selected spelling suggestion to clipboardnotify-send
fromlibnotify
package on Arch => to notify you on copying a spelling suggestion to clipboardagrep
fromtre
package on Arch => to do fuzzy searching in the wordlist to get spelling suggestionssox
fromsox
package on Arch => to play pronunciation
- 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
- et (simple underlying cli tool, run
et -h
for help) - rofi_et (a rofi menu for et, run
rofi_et
thenhelp
for help) - rofi_et_mode (a rofi custom mode for et, run
rofi -modes 'et:rofi_et_mode,drun,window' -show et
thenhelp
for help) - dmenu_et (a dmenu script for et, run
dmenu_et
and thenhelp
for help)
Usage: et OPTION...
Options:
-abr, --abbreviations <abr>
Print what <abr> might stand for from abbreviations.com.
-ant, --antonyms <word>
Print antonyms for <word> from bighugelabs.com.
-def, --define <word>
Print definitions for <word> from wordnik.com if correctly spelled, otherwise print spell suggestions.
-pro, --pronounce <word>
Play pronunciation of <word>.
Defaults to American English pronunciation (listed as macmillan in sources list) from wordnik.com (which in turn depends on macmillandictionary). Other pronunciation sources/accents (from dictionaryapi.dev) can be listed with -lst|--list-sources and specified with -src|--source (must come after -pro|--pronounce).
-lst, --list-sources <word>
List available pronunciation sources/accents for <word>.
-src, --source <source>
Specify the <source> to use for pronunciation. This option must come after -pro|--pronounce.
-spl, --spell <word>
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.
-syn, --synonyms <word>
Print synonyms for <word> from bighugelabs.com.
-h, --help
Print this help message and exit
- I got
words_alpha
wordlist from this repo. - wordnik.com is used to get definitions and pronunciations.
- abbreviations.com is used to get what abbreviations stand for.
- bighugelabs.com is used to get synonyms and antonyms.
- dictionaryapi.dev is used to get pronunciations.
Contributions are very welcome.