This macro compares two string fields and calculates the Jaro distance and Jaro-Winkler distance (see Wikipedia article: https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance ).
A scoring value between zero and 1 is calculated. A value close to 1 indicates a good match, a value near zero indicates a poor match. The Jaro distance compares all characters equally, the Jaro-Winkler distance weights in favour of the first four characters.