"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 07:20:51.832537
"""

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


class FactChecker:
    """
    A simple fact-checking system that evaluates the truthfulness of given statements based on predefined rules.
    """

    def __init__(self):
        self.rules = []

    def add_rule(self, rule: str) -> None:
        """
        Add a new rule to the checker.

        :param rule: A string representing the rule. For example, "temperature is between 0 and 100".
        """
        self.rules.append(rule)

    def check_facts(self, facts: List[Dict[str, Any]]) -> Dict[str, bool]:
        """
        Check multiple facts against the defined rules.

        :param facts: A list of dictionaries containing fact data. Each dictionary should have a 'statement' key.
        :return: A dictionary with each statement and its truthfulness as a boolean value.
        """
        results = {}
        for fact in facts:
            statement = fact.get('statement', '')
            is_true = any(rule in statement for rule in self.rules)
            results[statement] = is_true
        return results


# Example usage
if __name__ == "__main__":
    checker = FactChecker()
    # Adding rules
    checker.add_rule("temperature is between 0 and 100")
    checker.add_rule("distance is greater than zero")

    # Checking facts
    facts_to_check = [
        {"statement": "The temperature today is 25 degrees Celsius"},
        {"statement": "The distance from the sun to the earth is about 93 million miles"},
        {"statement": "The sky is blue at night"}
    ]

    results = checker.check_facts(facts_to_check)
    print(results)
```

This code snippet creates a `FactChecker` class that can add rules and check multiple facts against those rules. It includes an example of how to use the class.