Metrics for measuring the distance between two strings in terms of the number of words they share