Loosely matching rhymes for logic function