diff options
Diffstat (limited to 'vocab2')
-rwxr-xr-x | vocab2 | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +require 'zipf' + +d = {} +while line = STDIN.gets + line.strip.split.each { |tok| + d[tok] = true + } +end + +puts d.size + |