Home > python > A command-line, interactive mini dictionary

A command-line, interactive mini dictionary

In Google, you can use the search term “define:word” to get the definition of a given word. Google can also pronounce the word.

I’ve made a simple script that gives similar functionalities from the command-line. Usage: just type in a word. The script is part of my jabbapylib library; available here.


Jabba's Interactive Mini Dictionary v0.1.0
q - quit | c - clear
>>> barkeeper
A person who owns or operates a bar for the sale of alcoholic beverages.
(1) Aaron called the barkeeper over and asked for a beer.
(2) The barkeeper was the only human in the establishment; all of the patrons were stout, broad-faced halflings.

It’s not visible here, but the script pronounces the given word too.

The script uses the API of wordnik.com, so you’ll need to ask an API key (free). More info here.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: