The 'Speaking Dictionary'
Google defines the Urban Dictionary as: a Web-based dictionary that contains more than seven million definitions as of 2 March 2013. Submissions are regulated by volunteer editors and rated by site visitors. Time's Anita Hamilton included it on her 50 best websites of 2008 list.
Basically it is a site where you can find the definitions of contemporary or 'slang' words, for example YOLO, Twerk, and WWJD. This will keep you up to speed with the current youth culture lingo! (Please be advised that if using with this program with students the language contained in some of the definitions is some what choice) |
This simple code makes use of the Google translate API and a simple JSON query on to pull down the definitions and parse through the data to pull out the definitions of the word and the example of the definitions. The original functional code for this is from PasteBin (http://pastebin.com/fcPW6m3Z). This was tweaked to add a variable to enable the user to enter in a word of their choice.
|