The mathematical structure of semantic distances in language analysis.