"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 20:43:01.213263
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking tool that evaluates a list of facts based on predefined criteria.
    """

    def __init__(self, criteria: Dict[str, bool]):
        self.criteria = criteria

    def check_facts(self, facts: List[Dict[str, str]]) -> List[bool]:
        """
        Checks the given facts against the defined criteria.

        :param facts: A list of dictionaries containing fact information.
        :return: A list of boolean values indicating whether each fact meets the criteria.
        """
        results = []
        for fact in facts:
            passes_criteria = True
            for key, value in self.criteria.items():
                if key not in fact or fact[key] != str(value).lower():
                    passes_criteria = False
                    break
            results.append(passes_criteria)
        return results

# Example usage:

criteria = {"is_true": True, "category": "history"}
checker = FactChecker(criteria)

facts = [
    {"is_true": True, "category": "history", "details": "Ancient Rome was a civilization"},
    {"is_true": False, "category": "science", "details": "Water boils at 100 degrees Celsius"},
    {"is_true": True, "category": "history", "details": "World War II ended in 1945"}
]

results = checker.check_facts(facts)
print(results)  # Output: [True, False, True]
```