diff options
-rwxr-xr-x | spelling-rbee | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spelling-rbee b/spelling-rbee index 62ed1bd..feedc82 100755 --- a/spelling-rbee +++ b/spelling-rbee @@ -5,14 +5,19 @@ require "open-uri" words = [] correct = [] -=begin open FILE do |f| f.each do |line| words.push line.chomp end end + +=begin +open FILE do |f| + words = f.readlines.map(&:chomp) +end =end +=begin file = open FILE neof = true while neof @@ -27,6 +32,8 @@ while neof end end puts "words: %d" % words.length +=end + words.each {|word| system "espeak -s 100 '#{word}'" print "spell: " |