"""Baseline: rapidfuzz token_sort_ratio (word-reorder tolerant)."""

from rapidfuzz import fuzz
from harness import evaluate


def score(query, candidate):
    return fuzz.token_sort_ratio(query.lower(), candidate.lower()) / 100.0


if __name__ == "__main__":
    evaluate(score, name="04 - Token Sort Ratio")
