Directly comparing glosses with string similarity measures omits the important detail that certain lemmas can be highly-specific and most strongly indicate that two glosses refer to the same concept.
prior to comparison, the lemmas occurring in all glosses are assigned a weight −log 1 f (w) , where f (w) denotes the number of glosses in which lemma w appeared.