Loosely matching rhymes for weighted code