Loosely matching rhymes for lexicographic code