teaching machines

Thesaurize (Web APIs) – Andy Hurd

November 10, 2012 by . Filed under cs491 mobile, fall 2012, postmortems.

Thesaurize uses the thesaurus api provided by words.bighugelabs.com to retrieve synonyms of a word the user enters in.  The retrieved JSON is split into synonyms based on language construct.  So, any word the user inputs may retrieve synonyms when the word is used as a noun, verb, adjective, or adverb.  Once retrieved, only matching language construct buttons are made visible, which on touch, expand a ListView of synonyms of that class below.

The other half of Thesaurize retrieves and parses JSON from twodee.org and presents the retrieved data as clickable links in a ListView.

During the development of this application, I learned how to retrieve and parse JSON and use AsyncTask.  It also gave me a refresher on implicit intents to request the web browser to show links and gave me further experience creating user interfaces.  The stacked button-ListViews for each language construct took some time to get right, but after installing it on a phone, it definitely seemed worth it.  I also learned that web APIs often require your program to include some type of credit or link to their site for use.