This script is for Slackware 13.37 and may be outdated.

SlackBuilds Repository

python-cluster is a package that allows grouping a list of arbitrary objectsinto related groups (clusters). Simply give it a list of data and a functionto determine the similarity between two items and you're done.