Loosely matching rhymes for reverse-polarity protection