Levenshtein ( str1 ; str2 ; damerau ; caseSensitive )
Rate this function: Average rating: 3.0 (24 votes) Discuss this Custom Function
Steve Allen, Richard Carlton Consulting, Inc.
http://www.rcconsulting.com
Finds the Levenshtein or Damerau-Levenshtein distance between two strings.
Sample Input:
| Levenshtein ( "Steve" ; "stephen" ; False ; True ) |
|
Sample Output:
|
Description:
Finds the Levenshtein or Damerau-Levenshtein distance between two strings, as described at:
http://en.wikipedia.org/wiki/Levenshtein_distance
http://en.wikipedia.org/wiki/Damerau–Levenshtein_distance
(both pages accessed January 29, 2009 at 4:00 p.m.)
Note: best viewed in a large text space, or at least without word wrap, for formatting reasons.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
ValidateTC( MernisNo ) |
| |
(Tue, Jun 18, 6:44am) |
| 2. |
MinValue( theList ; treatAsNumeric ) |
| |
(Wed, Jun 12, 7:59am) |
| 3. |
MaxValue( theList ; treatAsNumeric ) |
| |
(Wed, Jun 12, 7:57am) |
| 4. |
LengthConvert ( Number , From , To ) |
| |
(Fri, May 31, 2:37pm) |
| 5. |
Backwards( _Field ) |
| |
(Thu, May 23, 10:49am) |
| 6. |
FilteredPortalList ( fieldObjectName ; startingPortalRow ) |
| |
(Tue, May 21, 5:33pm) |
| 7. |
ListToggle ( InList ; InValue ) |
| |
(Thu, May 16, 6:59pm) |
| 8. |
VatFormat ( vat ) |
| |
(Tue, May 14, 2:45am) |
 |
|