https://se.mathworks.com/help/textanalytics/ref/rangesearch.html
rangesearch - Find nearest neighbors by edit distance range - MATLAB
This MATLAB function finds all the words in eds that are within distance maxDist of the words in words.
find nearestby editneighborsdistancerange