fuzzy-search-lib
Version:
A flexible fuzzy search library supporting both MongoDB and PostgreSQL
11 lines • 443 B
TypeScript
/**
* Calculates the Jaro-Winkler similarity between two strings.
*
* @param s1 - First string
* @param s2 - Second string
* @param p - Scaling factor (default: 0.1)
* @param maxPrefix - Maximum prefix length (default: 4)
* @returns Jaro-Winkler similarity score between 0 and 1
*/
export declare function jaroWinklerSimilarity(s1: string, s2: string, p?: number, maxPrefix?: number): number;
//# sourceMappingURL=jaro-winkler.d.ts.map