Loosely matching rhymes for minimum-distance code