summaryrefslogtreecommitdiff
path: root/vocab-2
diff options
context:
space:
mode:
Diffstat (limited to 'vocab-2')
-rwxr-xr-xvocab-212
1 files changed, 12 insertions, 0 deletions
diff --git a/vocab-2 b/vocab-2
new file mode 100755
index 0000000..1004faf
--- /dev/null
+++ b/vocab-2
@@ -0,0 +1,12 @@
+#!/usr/bin/env ruby
+
+require "zipf"
+
+d = {}
+while line = STDIN.gets
+ line.strip.split.each { |tok|
+ d[tok] = true
+ }
+end
+
+puts d.size