pub fn confidence(score: f64, quality: f64, best_other: Option<f64>) -> f64Expand description
Presented confidence in [0,1]: match quality scaled by dominance — how much
this result leads the strongest other one. A unique strong match → ~1.0;
evenly-tied candidates → ~0.5 (rq isn’t sure which you mean); a lone weak
fuzzy match stays low. best_other is the top score among the other results
(None when this is the only one). Rounded to two decimals.