"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 18:19:40.710559
"""

```python
from typing import List, Dict, Any


class FactChecker:
    """
    A simple fact-checking class that verifies a list of claims based on pre-defined rules.
    """

    def __init__(self):
        self.rules = {
            "is_positive": lambda x: x > 0,
            "is_even": lambda x: x % 2 == 0,
            "starts_with_a": lambda s: s.startswith('a'),
        }

    def check_facts(self, claims: List[Dict[str, Any]]) -> Dict[str, bool]:
        """
        Checks if the claims satisfy predefined rules.

        Args:
            claims (List[Dict[str, Any]]): A list of claims where each claim is a dictionary with keys 'value' and
                                            'rule_name'.

        Returns:
            Dict[str, bool]: A dictionary mapping rule names to their verification results.
        """
        check_results = {}
        for claim in claims:
            value = claim.get('value')
            rule_name = claim.get('rule_name')

            if rule_name not in self.rules:
                raise ValueError(f"Unknown rule: {rule_name}")

            result = self.rules[rule_name](value)
            check_results[rule_name] = result

        return check_results


# Example usage
if __name__ == "__main__":
    fact_checker = FactChecker()
    claims_to_check = [
        {"value": 10, "rule_name": "is_positive"},
        {"value": 5, "rule_name": "is_even"},
        {"value": "apple", "rule_name": "starts_with_a"}
    ]
    results = fact_checker.check_facts(claims_to_check)
    print(results)  # Output: {'is_positive': True, 'is_even': False, 'starts_with_a': True}
```