Thanks to those that have posted advice in the past, its been extremely helpful so far.
I'm having a bit of difficulty with hashes. The code reads my text, counts the words, but then gives me a syntax error. Can someone help me with this?
puts "Text please" text = gets.chomp words = text.split(" ") frequencies = Hash.new(0) words.each do |words| frequencies["word"] += 1 puts frequencies["word"] end
Where did I go wrong?