Function: textSimilarity()
function textSimilarity(a, b): number;
Defined in: packages/uimatch-core/src/utils/normalize.ts:445
Lightweight text similarity score (0..1) Uses hybrid approach: 80% token overlap + 20% character position match
Parameters
a
string
First text
b
string
Second text
Returns
number
Similarity score from 0 (completely different) to 1 (identical)