"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-08 04:46:39.595423
"""

```python
from typing import List, Dict, Any
from dataclasses import dataclass
from random import choice


@dataclass
class FactChecker:
    """
    A simple fact-checking capability that verifies if a statement is true based on predefined facts.
    """

    knowledge_base: Dict[str, bool]

    def __post_init__(self):
        self.knowledge_base = {k.lower(): v for k, v in self.knowledge_base.items()}

    def check_fact(self, statement: str) -> bool:
        """
        Check if the given statement is true based on the knowledge base.

        :param statement: A string representing a fact to be checked.
        :return: True if the fact is true, False otherwise.
        """
        return self.knowledge_base.get(statement.lower(), False)

    def add_fact(self, new_fact: str, truth_value: bool):
        """
        Add a new fact to the knowledge base.

        :param new_fact: A string representing a new fact.
        :param truth_value: The boolean value of the new fact (True or False).
        """
        self.knowledge_base[new_fact.lower()] = truth_value


def example_usage():
    # Example knowledge base
    facts = {
        "the moon is made of cheese": False,
        "the earth revolves around the sun": True,
        "water boils at 100 degrees Celsius": True,
        "pyramids were built by aliens": False
    }

    checker = FactChecker(facts)

    print(checker.check_fact("The Moon is made of cheese"))  # Output: False
    print(checker.check_fact("Pyramids were built by aliens"))  # Output: False

    new_facts = ["earth's largest country is Russia", "oceans cover less than half the earth's surface"]
    for fact in new_facts:
        truth_value = choice([True, False])
        checker.add_fact(fact, truth_value)
    
    print(checker.check_fact("Earth's largest country is Russia"))  # Output: True or False randomly assigned


if __name__ == "__main__":
    example_usage()
```

This code provides a simple fact-checking capability with basic functionalities to check and add facts. The `check_fact` method checks if the given statement matches any entry in the knowledge base, while the `add_fact` method allows adding new facts. Example usage is included at the bottom of the script.