RelatedWord

Get the list of related words of a specific word.

Versions

For installations and instructions of older versions, please follow below links:

Installation

Add this line to your application's Gemfile:

gem 'related_word'

And then execute:

$ bundle

Or install it yourself as:

$ gem install related_word

Config

RelatedWord.config do |c|
  c.timeout = 200 # The timeout for each request to the service
end

Usage

RelatedWord.find

require 'related_word'

word = 'student'
RelatedWord.new.find(word)
#=> [{:word=>"individualized", :score=>"0.258894"}, {:word=>"NUS", :score=>"0.206925"}, {:word=>"extracurricular", :score=>"0.206289"}, {:word=>"Yearbook", :score=>"0.197864"}, ...]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/related_word. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.