
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
wordnik
Advanced tools
This is the official Wordnik rubygem. It fully wraps Wordnik's v4 API. Refer to developer.wordnik.com/docs to play around in the live API sandbox. All the methods you see there are implemented in this ruby gem.
Add the wordnik gem to your Gemfile.rb:
gem 'wordnik'
Then from your project's RAILS_ROOT, run:
bundle install
Create a file named config/initializers/wordnik.rb and drop this in:
Wordnik.configure do |config|
config.api_key = '12345abcde' # required
config.username = 'bozo' # optional, but needed for user-related functions
config.password = 'cl0wnt0wn' # optional, but needed for user-related functions
config.response_format = :json # defaults to json, but xml is also supported
end
Add the wordnik gem to your app. In config/environment.rb:
config.gem 'wordnik'
Then from your project's RAILS_ROOT, run:
rake gems:install
rake gems:unpack GEM=wordnik
Create config/initializers/wordnik.rb and drop this in:
Wordnik.configure do |config|
config.api_key = '12345abcde'
config.response_format = :json # defaults to json, but xml is also supported
end
gem install wordnik
Put this somewhere in your app's initialization process:
Wordnik.configure do |config|
config.api_key = '12345abcde'
config.response_format = :json # defaults to json, but xml is also supported
end
# The clean version..
examples = Wordnik.word.get_examples('monkey', :limit => 50, :part_of_speech => 'verb')
# ..and its low-level equivalent
request = Wordnik::Request.new(:get, '/word/{word}/examples', :params => {:word => 'monkey', :limit => 50, :part_of_speech => 'verb'})
examples = request.response.body
request1 = Wordnik.word_list.get_word_list_by_id('dog', :request_only => true)
For a full list of methods, checkout USAGE.md. The wordnik gem automatically generates its convenience methods by parsing the Wordnik API documentation.
The wordnik gem uses rspec 2. To run the test suite, just type rake or rake spec in the gem's base directory.
FAQs
Unknown package
We found that wordnik demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.