Improve the prioritization for repeated words