Loosely matching rhymes for diamond code