Count words for a string with quotation marks
class String def word_count frequencies = Hash.new(0) downcase.scan(/\w+/) { |word| frequencies[word] += 1 } return frequencies end end %{"I have no shame," I said.}.word_count