# AI-Generated Text Verifier ## Description The AI-Generated Text Verifier is a Python library that uses natural language models and statistical analysis to determine whether text content is human-written or AI-generated. This tool can be used to identify fake AI-generated news articles or social media posts. ## Features - Detects patterns in text to classify it as human-written or AI-generated. - Supports popular transformer-based models for text embeddings. - Provides a probability score for text authenticity. ## Installation Install the required dependencies using pip: ```bash pip install transformers==4.33.3 scikit-learn==1.3.0 numpy==1.26.0 ``` ## Usage Import the library and use the `verify_text` function: ```python from ai_text_verifier import verify_text text = "This is a sample text." score = verify_text(text) print(f"Probability of being AI-generated: {score:.2f}") ``` You can also use the CLI: ```bash python ai_text_verifier.py "This is a sample text." ``` ## Example ```python from ai_text_verifier import verify_text text = "Generated by AI." score = verify_text(text) print(f"Probability of being AI-generated: {score:.2f}") ``` ## Limitations - The tool uses a mock classifier for demonstration purposes. For production use, train the model with real data. - Accuracy depends on the quality of the training data. ## License MIT License