Skip to content

kariannemah/define_me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Define Me

"Mating is I think the only book in which the issue of people resorting to their dictionaries has come up. I thought it was clear in the book, but I guess it wasn’t, as I still occasionally have to explain that Karen Ann Hoyt’s extensive vocabulary was built as part of her ladder up and out of her disadvantaged origins. It’s about her, of course, and not about the precise meaning of every word she uses."
— Norman Rush on his first novel

An old habit of mine is writing down a word whose definition I either do not know or am not more than 90% certain of. Lists appear in the margins of books, in notebooks, on the covers of magazines, on receipts and Post-it notes too. But the practice grows unruly at times. It would be better to have all the words in one central place. And better still to be able to track how many times I've looked up a word. (Some words, like loves, remain elusive.)

Define Me looks up a word with Wordnik and store its definition in a database table. Before running this script, you'll have to sign up for a Wordnik API key if you haven't already. I connect to a MySQL server, but you can specify another connection.

Running the accompanying Sinatra app, you'll be able to see your list of words in the browser of your choice.

Installation

Install required gems:
bundle install

Convert the file bin/lookup_word to an executable:
chmod +x bin/lookup_word

Run

From the command line, look up a word and save its definition to the database:
bin/lookup_word

Or fire up the Sinatra app and look up a word from the browser:
ruby see_list.rb

If you're like me, you'll end up with a long list, but you can filter by word to easily retrieve a definition.

About

looks up a word and stores its definition in a table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published