What I am struggling with (for a project) is code that does fuzzy matching. Sometimes, I have lists of names of which some are misspelled by one or more characters, and for some, the first name is listed first, for others last, the intermediates 'van', 'von der', etc. are used or not, before the last name, or separated, or at the end, and still I'd like to match the names to the most likely ones in two lists (given a certain threshold when they are really different).
Your project sounds both interesting & tricky. I have created one more problem that may interest you in that respect, namely Problem 44383. I guess it is vaguely like fuzzy matching, but with sentences (rather than names). There was also Problem 93 in the Cody Challenge.
Hello. I have added one more test to the Test Suite to more fully ensure compliance with the Problem Statement. Sorry that this wasn't part of the original Test Suite. However, it should be very quick for you to make a small modification to your code to pass the revised Test Suite. —DIV
OK, but strange that my initial solution that worked at that time is now invalid. Well, adding a couple of characters to the regular expression did the job.
It is as I expected, actually, because I noticed from your initial solution that it was 'missing' one tiny detail (which you've now added). It passed the original Test Suite because that contained just a smallish(!) number of real names of (more-or-less) famous people. Only by creating a short list of synthetic names (or an extremely long list of real names) could I bring the Test Suite in line with the intention indicated in the Problem Statement. Again, I'm sorry I didn't have this included from the outset. —DIV
Project Euler: Problem 6, Natural numbers, squares and sums.
Sum the Digits of a Number
Adding and Subtracting UINT variables
Code breaker, Part II: Operation Orthos
Curve fitting (non-linear functions) & function handles
Monte Carlo integration: area of a polygon
Make your own Test Suite (part 2)
Back to basics: adding comments to your code
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office