Similitud Jaro-Winkler
jaro-winklerCalcula la similitud Jaro y Jaro-Winkler (0-1), adecuada para nombres cortos. Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: calcular la distancia de edición de Levenshtein entre dos cadenas y similitud normalizada (levenshtein-distance). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Computes the Jaro and Jaro-Winkler similarity (0-1) with prefix scale 0.1 and up to 4 prefix characters, suited to short strings like names. When: text has to be transformed, compared or measured exactly instead of approximated. Not for: computing the edit distance (levenshtein-distance). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First string (string; required; up to 5000 chars). | |
| b | Yes | Second string (string; required; up to 5000 chars). | |
| prefix_scale | No | Prefix scale (number; optional; default 0.1; min 0; max 0.25). | |
| case_sensitive | No | Case sensitive (boolean; optional; default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jaro | No | ||
| jaro_winkler | No |