Version 2 of Knicker, the Java library for the Wordnik API, is now available. This version supports version 4 of the Wordnik API.

In addition to supporting version 4 of the Wordnik API, this version of Knicker follows the organization of the API more closely. Previously, all the methods were in one class, Knicker.java. Knicker.java still exists, but it is now abstract and contains only constants used by other classes. The methods that access the Wordnik API are now in classes named after the section of the API they access. So account API methods are now in AccountApi, word API methods are in WordApi, and so on. This makes the source a little more manageable, and allows a more modular approach to testing and development.

This version also includes JUnit tests for all the Wordnik API methods. During the development of version 2, these tests helped find several bugs in the API, which the Wordnik team quickly fixed.

One of the coolest features of the new Wordnik API is the ability to retrieve audio pronunciation data for words. Retrieval of the audio data is fully supported in Knicker version 2. Playback of the data is left up to you.

In addition to a new version of the library, I have also started a Knicker Examples project. There is currently one example that shows how to retrieve and display text definitions, and retrieve and play the audio definition for the word. The project contains all necessary libraries, so you can grab it and go. I will probably be adding additional examples as I have time, and contributions are welcome.

As always, please let me know when you find bugs. You can contact me via email, leave a comment here, or post to the Wordnik developers mailing list, which I am subscribed to.

Happy coding!