Emulating simple optical character recognition and repair, in clojure