Popular recipes by Kendall Clark http://code.activestate.com/recipes/users/1506722/2003-12-03T19:06:00-08:00ActiveState Code RecipesDo What I Mean (dwim) (Python)
2003-12-03T19:06:00-08:00Kendall Clarkhttp://code.activestate.com/recipes/users/1506722/http://code.activestate.com/recipes/252237-do-what-i-mean-dwim/
<p style="color: grey">
Python
recipe 252237
by <a href="/recipes/users/1506722/">Kendall Clark</a>
(<a href="/recipes/tags/text/">text</a>).
Revision 4.
</p>
<p>Provides a do-what-I-mean function, dwim_match, that takes two strings and returns True or False; the former if the two strings 'match', the latter if they don't.
The matching algorithm is taken from SWI-Prolog's dwim_match/2 function.</p>