After spelling demo ported to scala.