This is a simplified implementation of ambiguous matching algorithm based on Baeta-Yates, R.A., Gonnet, G.H., Wu, S. and Manber, U.
This algorithm returns a number that represents the similarity distance between a given pattern and a text.
You can also extract similar words to a given pattern from a list of words. See class comments for details.