Similitud de Sørensen-Dice
dice-similarityCalcula el coeficiente de Sørensen-Dice sobre bigramas de caracteres (0-1). Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: calcular la similitud Jaro y Jaro-Winkler (jaro-winkler). 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 sørensen-Dice coefficient over character bigrams (0-1); robust for fuzzy matching of phrases and titles. When: text has to be transformed, compared or measured exactly instead of approximated. Not for: computing the Jaro and Jaro-Winkler similarity (jaro-winkler). 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 20000 chars). | |
| b | Yes | Second string (string; required; up to 20000 chars). | |
| case_sensitive | No | Case sensitive (boolean; optional; default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| similarity | No |