Loosely matching rhymes for error-correcting code