Text.JaroWinklerDistance
------------------------

Calculates the string distance.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Text](component_Text.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

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

**MBS**( **"Text.JaroWinklerDistance";** /\* Calculates the string distance. \*/  
**$a**; /\* First text string.e.g. "Hello" \*/   
**$b**) /\* Second text string.e.g. "Hallo" \*/ 

(old name: String.JaroWinklerDistance)

### Parameters

| Parameter | Description | Example |
|---|---|---|
| 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/Jaro-Winkler\_distance](http://en.wikipedia.org/wiki/Jaro-Winkler_distance)  
### Examples

Calculate difference between two strings:

 MBS ( "Text.JaroWinklerDistance"; "Hello"; "Hallo" )  
<small>  
Example result: 0.1199</small>### See also

- [GMImage.Hash](GMImageHash.md)

This function checks for a license.

Created 18th August 2014 , last changed 10th November 2023

  
[Text.InvalidCharactersForEncoding](TextInvalidCharactersForEncoding.md) - [Text.LeftTrim](TextLeftTrim.md)

[HTML Version](TextJaroWinklerDistance.shtml)