"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 14:43:34.025778
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A basic fact-checking capability that compares provided statements against a known database of facts.
    
    Attributes:
        db_facts (Dict[str, str]): A dictionary containing known facts where the key is the topic and value is the statement.
        
    Methods:
        check_fact(topic: str, statement: str) -> bool:
            Returns True if the given statement matches the stored fact for the provided topic, otherwise False.
    
    Example Usage:
        checker = FactChecker()
        checker.db_facts = {"Einstein": "Albert Einstein is a physicist."}
        
        print(checker.check_fact("Einstein", "Albert Einstein is a scientist."))  # Output: False
        print(checker.check_fact("Einstein", "Albert Einstein is a physicist."))  # Output: True
    """
    
    def __init__(self):
        self.db_facts = {}
        
    def check_fact(self, topic: str, statement: str) -> bool:
        """Check if the provided statement matches the stored fact for the given topic."""
        known_statement = self.db_facts.get(topic)
        return known_statement == statement


# Example usage
if __name__ == "__main__":
    checker = FactChecker()
    checker.db_facts = {
        "Einstein": "Albert Einstein is a physicist.",
        "Pythagoras": "Pythagoras was an ancient Greek mathematician."
    }
    
    print(checker.check_fact("Einstein", "Albert Einstein is a scientist."))  # Output: False
    print(checker.check_fact("Einstein", "Albert Einstein is a physicist."))  # Output: True
```