def normalized(word)
      h = self[word]
      max = h.values.max

      return h if max == 0.0

      h.each do |word, value|
        h[word] = value / max
      end

      h
    end
def normalized(word)
      h = self[word]
      max = h.values.max

      return h if max == 0.0

      h.each do |word, value|
        h[word] = value / max
      end

      h
    end
TODO: This code is ugly. Refactor me :(