In May 2015 (so still in the Swift 1 days) I wrote a version of Peter Norvig's simple spelling correction generator. I happened to think of it again and thought I'd try updating it to use all the improvements to #Swift that have happened since then.
https://gist.github.com/airspeedswift/1cd9cd1607de104ecf7bbfb80865c8bd
