Loosely matching rhymes for semiconductor device