Sha256: fee52034619bd65ca53dba56d194066ce29b23649377672a45502b0f8d9f623e

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

require "related_word/version"
require "json"
require "net/http"
require "uri"

module RelatedWord
  def self.find(word)
    link = "http://semantic-link.com/related.php?word=#{word}"
    uri = URI.parse(link)
    response = Net::HTTP.get_response(uri)
    JSON.parse(response)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
related_word-0.1.1 lib/related_word.rb