only keep one log entry for each word