If you are interested in NLP this goes over the concepts of each primary method of testing he distance between things; using different types of spaces - eviltoast