Loosely matching rhymes for electron beam lithography