repo.or.cz
/
jruby.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix for JRUBY-2882. Handle error messages related to constructors better
[jruby.git]
/
bench
/
shootout
/
spellcheck.ruby
blob
b2c5bd68f96a8ebde468d5e9f60128cd632a6720
1
#!/usr/bin/ruby
2
# -*- mode: ruby -*-
3
# $Id: spellcheck.ruby,v 1.3 2005-06-21 05:36:55 igouy-guest Exp $
4
# http://shootout.alioth.debian.org/
5
# Revised by Dave Anderson
6
7
dict
=
Hash
.
new
8
l
=
""
9
10
IO
.
foreach
(
"Usr.Dict.Words"
)
do
|
l
|
11
dict
[
l
.
chomp
!] =
1
12
end
13
14
STDIN
.
each
do
|
l
|
15
unless
dict
.
has_key
?
l
.
chomp
!
16
puts l
17
end
18
end