http://www.perlmonks.org?node_id=261112


in reply to Group Similar Items

You could use Text::PhraseDistance that tries to give a measure of the degree of proximity of 2 given phrases.

In this way you can build a set of phrases with associated different weights.