"""Create fact_checker
Generated by Phi-Octopus Eden
2025-11-06 23:43:40.625592
"""

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

def create_fact_checker(fact_database: List[Dict[str, Any]]) -> callable:
    """
    Creates a fact-checking function that can verify if given statements match known facts.

    Args:
        fact_database (List[Dict[str, Any]]): A list of dictionaries containing key-value pairs where keys are the fact topics
                                               and values are the corresponding factual information.

    Returns:
        callable: A function capable of checking whether a statement matches any of the stored facts.
    
    Raises:
        ValueError: If the provided `fact_database` is empty.
    """
    if not fact_database:
        raise ValueError("Fact database cannot be empty.")

    def check_statement(statement: str) -> bool:
        """
        Checks if the given statement is supported by any of the facts in the database.

        Args:
            statement (str): The statement to verify.

        Returns:
            bool: True if the statement matches a fact, False otherwise.
        """
        for fact in fact_database:
            fact_topic = list(fact.keys())[0]
            # Use regex to check if the statement contains a key phrase from the facts
            pattern = re.compile(r'\b' + r'\s*|\b'.join(re.escape(word) for word in fact[fact_topic].split()) + r'\b', re.IGNORECASE)
            if pattern.search(statement):
                return True
        return False

    return check_statement


# Example usage
if __name__ == "__main__":
    # Sample fact database
    facts = [
        {"president": "Barack Obama was the 44th president of the United States from 2009 to 2017."},
        {"science": "Water boils at 100 degrees Celsius at sea level."}
    ]

    # Create the fact checker
    fact_checker = create_fact_checker(facts)

    # Test statements
    test_statements = [
        "Barack Obama was a former president of USA.",
        "The water in my kettle will boil when it reaches 100 degrees Celsius.",
        "I saw Barack Clinton during his presidency."
    ]

    # Check the statements
    for statement in test_statements:
        result = fact_checker(statement)
        print(f"Statement: {statement} -> Fact-check result: {'Yes' if result else 'No'}")
```

This Python code defines a `create_fact_checker` function that takes a list of dictionaries as input, each containing key-value pairs where the keys are topics and values are factual information. It returns a callable function capable of checking whether provided statements match any of these facts using simple keyword matching with regular expressions for improved flexibility.