def METHOD_NAME(rule: Rule) -> float:
    return sum(
        [
            0.98
            * difflib.SequenceMatcher(
                None, rule.endpoint, self.endpoint
            ).ratio(),
            0.01 * bool(set(self.values or ()).issubset(rule.arguments)),
            0.01 * bool(rule.methods and self.method in rule.methods),
        ]
    )