An interface to the Wordnik API, which lets you get dictionary definitions, random words, pronunciation, and more! Built with Backbone.js.
Make sure you have a Wordnik API key and pass it to the init function on require:
var APIKEY = 'YOURAPIKEY';var Wordnik = ;
Here's an example of declaring a new word and then populating it with the data from every available word method.
var word = word: 'king' params:includeSuggestions:true;word;
Here's an example of using the getRandomWordModel function, which behind the scenes generates a random word and then creates a Wordnik.Word model based on it.
var randomWordPromise = Wordnik;randomWordPromise;
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
- 0.1.0 (2/14/2013) - initial release
Copyright (c) 2013 Darius Kazemi
Licensed under the MIT license.