jaro_winkler_similarity
The Jaro-Winkler similarity between two strings. Characters of different cases (e.g., a and A) are considered different. Returns a number between 0 and 1. For similarity < score_cutoff, 0 is returned instead. score_cutoff defaults to 0.
Try an expression
In Formula, enter the expression and set Output type to DOUBLE.
Expression
jaro_winkler_similarity('duck', 'duckdb')Result
0.9333333333333333To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
jaro_winkler_similarity(s1, s2, score_cutoff)- s1
- Text
- s2
- Text
- score_cutoff
- Number
Supported signatures (2)
jaro_winkler_similarity(s1: VARCHAR, s2: VARCHAR) → DOUBLE
jaro_winkler_similarity(s1: VARCHAR, s2: VARCHAR, score_cutoff: DOUBLE) → DOUBLEThe result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
If the first argument is missing, the result is NULL.
Function metadata from DuckDB, used under the MIT license.