Deduplicate list of words first