"""Baseline: rapidfuzz partial_ratio (substring-aware fuzzy)."""

from rapidfuzz import fuzz
from harness import evaluate


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


if __name__ == "__main__":
    evaluate(score, name="03 - Partial Ratio (substring-aware)")
