def wordcount(path) file=File.open(path);a=IO.read(file).split(" ");b=[[a[0],1]]; for i in 1..a.length-1 for j in 0..b.length-1 if a[i].chomp(",").chomp(".")==b[j][0].chomp(",").chomp(".") then b[j][1]=b[j][1]+1;c=false;break; else c=true; end; end;...