• Calculates string similarity using enhanced algorithms.

    Parameters

    • str1: string

      First string to compare.

    • str2: string

      Second string to compare.

    Returns number

    Similarity score between 0 and 100.

    export function calculateSimilarity(str1: string, str2: string): number {
    if (!str1 || !str2) return 0;
    if (str1 === str2) return 100;

    return calculateEnhancedSimilarity(str1, str2, { debug: false });
    }