Loosely matching rhymes for phase detector