Loosely matching rhymes for mask alignment