Word frequency count FIXED by polo

puts$*|(a=gets(p).downcase.tr('^a-z ','').split.sort).map{|w|"#{a.count w} "+w}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page