Command-line-based utility to find the combination of words and return the average distance.