summaryrefslogtreecommitdiff
path: root/length-ratio
blob: 5b3882697fd499c4fb539e432dc2bc6cf674c893 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby

require "zipf"

a = ReadFile.new ARGV[0]
b = ReadFile.new ARGV[1]

while linea = a.gets
  lineb = b.gets
  puts linea.strip.split.size.to_f / lineb.strip.split.size.to_f
end