Repairing comparison of groups of words