Cambridge
cambridge
is a terminal version of Cambridge Dictionary, whose source is from https://dictionary.cambridge.org; also supports the Merriam-Webster Dictionary as backup.
Screenshots
Look up words/phrases in Cambridge Dictionary (screenshot on DARK terminal background)

Look up words/phases in Merriam-Webster Dictionary (screenshot on LIGHT terminal background)

Highlights
camb <word/phrase>
to look up in Cambridge Dictionary by defaultcamb -c <word/phrase>
to look up in Cambridge Dictionary with correspondent Chinese meaningscamb -w <word/phrase>
to look up in Merriam-Webster Dictionary- support concurrent searching multiple words from one dictionary, or multiple words from different dictionaries
- less than 2s taken to do all the work for the word, including fetching, parsing, printing, and writing cache
- less than 0.1s for the same word's later search by retrieving cache
- only the first dictionary from Cambridge (assuming the optimal) to avoid being confused by multiple dictionaries
- a list of suggestions will be given, if not found
camb l
to list cached words and phrases- support checking "Word of the Day" from Merriam-Webster Dictionary
- support displaying spellcheck suggestion list, cache list, Webster's all of word of the days by
fzf
- if
fzf
not installed, the aforementioned lists have been formatted elaborately - well tuned to dark, light, blueish, grayish,
gruvbox
(dark & light), solarized
(dark & light) terminal colorschemes
Install & Uninstall
pip install cambridge
pip uninstall -r requirements.txt -y
rm -rf $HOME/.cache/cambridge
rm -rf $HOME/.cache/fakeua
make install
make uninstall
make clean_cache
Usages
Command s
(hidden)
For looking up words/phrases in a dictionary or multiple dictionaries.
camb <word/phrase>[, w/p, w/p, ...]
camb -w <word/phrase>[, w/p, w/p, ...]
camb -c <word/phrase>[, w/p, w/p, ...]
camb <w/p>[, <w/p>, ...] -w <w/p>[, <w/p>, ...] -c <w/p>[, <w/p>, ...]
--debug
-f
-n
camb "a stone's throw" | camb a stone\'s throw
camb "have your/its moments" | camb have your\/its moments
Command l
For listing and deleting items in the cache.
camb l
camb l -t
camb l -r
camb l -d
Command wod
For displaying 'Word of the Day' in the Merriam Webster Dictionary
camb wod
camb wod -l
General options
camb -h, --help
camb -v, --version