Functions

A word is considered to be a match if it is within max_distance of the start of the word.