The Scala code for the same task gets the job done in half as many lines:
<a href="http://capecoder.wordpress.com/2012/04/15/spellchecker-in-scala-vs-kotlin/" rel="nofollow">http://capecoder.wordpress.com/2012/04/15/spellchecker-in-sc...</a>
Nice example. I like Scala, but its a huge leap from Java. Kotlin clearly tries to mitigate this while still having some nice terseness which Scala also fails at. Hopefully Kotlin will get some traction.
on a somewhat unrelated note, you can write a noisy channel model spell checker with a lot more data and a bit more code: <a href="http://norvig.com/spell-correct.html" rel="nofollow">http://norvig.com/spell-correct.html</a>