Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

Text.LevenshteinDistance

Calculates the string distance.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 2.9 Yes Yes Yes Yes Yes

MBS( "Text.LevenshteinDistance"; a; b )

(old name: String.LevenshteinDistance)

Parameters

Parameter Description Example value
a First text string. "Hello"
b Second text string. "Hallo"

Result

Returns difference.

Description

Calculates the string distance.
Value is normalized, so 0.0 is equal text and 1.0 is totally unequal.

see also
http://en.wikipedia.org/wiki/Levenshtein_distance

Examples

Calculate difference between two strings:

MBS( "Text.LevenshteinDistance"; "Hello"; "Hallo" )

Example result: 0.2

See also


Text.Length   -   Text.LowerCase

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins