CLDictP: A Command-Line Dictionary Tool
A command line dictionary written in Perl using Merriam-Webster APIs.
This is my first project using Perl. I feel it is tedious to type formatted definitions to Quizlet(A website which can make flashcards for you) and I’m too lazy to open browser and online dictionary pages. Why not combining these two?
It uses following APIs:
For each entry, it contains:
Pronunciation: IPA(International Phonetic Alphabet)
Part of Speech
All searched words are saved in a set and saved to
It also save searched words and definitions into the file
quizlet.txt so that they can be imported into Quizlet which makes flashcards. The format is:
between term and definition:
Get API Keys: DictionaryAPI.
Add API Keys to
api_template.jsonand change the file name to
Install dependencies with
$ cpan Term::ANSIColor Term::ReadKey LWP::UserAgent LWP::Protocol::https Readonly XML::LibXML JSON::XS Data::Dumper Set::Light
Run the script with
$ perl dict.pl
To exit, use Ctrl+D.
The source files are hosted on Github.