class RelatedWord::Formatter::OnelookFormatter

Public Instance Methods

format() click to toggle source
# File lib/related_word/formatter/onelook_formatter.rb, line 4
def format
  resp.map do |el|
    # NOTE: Onelook doesn't provide the score for each word
    { word: el[0], score: 0 }
  end
end