def response_to_hash(response)
      result = {}
      array = YAML.load(response.gsub(/,+/, ', '))
      array[1].each do |trans|
        word_class = trans[0].empty? ? 'undefined' : trans[0]
        result[word_class] = trans[1]
      end
      result
    rescue NoMethodError
      raise Smartdict::TranslationNotFound
    end
def response_to_hash(response)
      result = {}
      array = YAML.load(response.gsub(/,+/, ', '))
      array[1].each do |trans|
        word_class = trans[0].empty? ? 'undefined' : trans[0]
        result[word_class] = trans[1]
      end
      result
    rescue NoMethodError
      raise Smartdict::TranslationNotFound
    end
Parses string return by GoogleTranslate
 Returns hash similar to this:
   { "noun" => ["try", "attempt"],
     "verb" => ["try", "offer"] }
 If no translation was found than returns nil.
 @return [Hash] every key is word class and every value is array of translated words.