Loosely matching rhymes for balanced code