Machine learning program that calculates similar words