"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 21:26:29.409948
"""

```python
from typing import List, Dict


class FactChecker:
    """
    A simple fact-checking system that evaluates given statements against predefined facts.
    
    Methods:
        check_facts: Compares user input statements to a set of known facts and returns the accuracy score for each.
    """

    def __init__(self, facts: List[str]):
        self.facts = {fact: True for fact in facts}

    def check_facts(self, statements: List[str]) -> Dict[str, float]:
        """
        Evaluates input statements against predefined facts.

        Args:
            statements (List[str]): The user input statements to be checked.
        
        Returns:
            Dict[str, float]: A dictionary containing each statement and its accuracy score based on the known facts.
        """
        results = {}
        for statement in statements:
            # Simple matching mechanism: 1.0 if exact match, 0.5 if partial match, 0.0 otherwise
            for fact in self.facts.keys():
                if statement == fact:
                    results[statement] = 1.0
                    break
                elif statement.startswith(fact) or fact.startswith(statement):
                    results[statement] = 0.5
                    break
            else:  # No match found
                results[statement] = 0.0

        return results


# Example usage
if __name__ == "__main__":
    known_facts = ["Paris is the capital of France", "The sun rises in the east"]
    checker = FactChecker(known_facts)
    
    user_statements = [
        "Paris is a beautiful city",
        "The moon orbits around Earth",
        "France's capital is Paris",
        "Sunset happens in the west"
    ]
    
    results = checker.check_facts(user_statements)
    for statement, score in results.items():
        print(f"Statement: {statement} | Accuracy Score: {score}")
```

This code provides a basic fact-checking system that assesses input statements against predefined facts using simple matching logic. It's limited by its reasoning capabilities and does not delve into complex natural language processing or external data sources for verification.