Loosely matching rhymes for character recognition