i don't know why this code is not working
puts "text please: "
text = gets.chomp
words = text.split(",")
if you use split(",")you want to split a string which is using the comma-,as a separatorThusa text like "a,b,c" would become[a,b,c]
If have a normal text liketext= "This is a text"you have to use text.split(" ")