Ai Text Analyzer
Pricing
from $20.00 / 1,000 results
Ai Text Analyzer
The AI Text Analyzer helps you quickly determine whether a piece of text is AI-generated or human-written. Built for accuracy and clarity, it analyzes writing patterns, structure, predictability, and stylistic signals to deliver a clear confidence scoreβso you can make informed decisions in seconds.
Pricing
from $20.00 / 1,000 results
Rating
0.0
(0)
Developer
Ruturaj Sharbidre
Actor stats
1
Bookmarked
2
Total users
0
Monthly active users
3 months ago
Last modified
Categories
Share
AI-Text-Analyzer
AI-Text-Analyzer is a powerful Python-based tool designed for Apify to scrape web content and perform deep analysis. It differentiates between human and AI-generated text, checks for grammar errors, and provides detailed readability statistics.
β¨ Features
- π·οΈ Smart Scraping: Extracts clean text from any given URL, stripping away ads and scripts.
- π€ AI Detection: Uses the
roberta-base-openai-detectormodel to determine if text is Human Written or AI Generated, providing a confidence percentage. - βοΈ Grammar Checking: Identifies typos and grammar mistakes with context and suggestions (using LanguageTool).
- π Text Statistics: Calculates Flesch Reading Ease, word count, estimated reading time, and sentiment measurement.
- π Persistent Logging: Saves every analysis result as a JSON file in the
logs/directory for historical tracking.
π Installation & Setup
-
Clone the repository:
git clone <repository-url>cd ai-text-analyzer -
Install Dependencies: Note: This includes heavy ML libraries (Torch, Transformers).
$pip install -r requirements.txt
π οΈ Usage
1. Command Line (Direct Input)
The fastest way to test a string of text locally:
$python -m src.main "Your text to analyze goes here..."
Output:
{"timestamp": "2024-05-20T10:00:00.123456","ai_detection": {"label": "Human Written","confidence_percentage": "98.5%"},"grammar": [],"stats": {"word_count": 6,"sentiment_polarity": 0.0}}
2. Apify Inputs (Local Simulation)
To simulate an Apify run locally using the configuration file:
- Edit
apify_storage/key_value_stores/default/INPUT.json. - Run:
# Linux/Macexport APIFY_LOCAL_STORAGE_DIR="./apify_storage"python -m src.main# Windows Powershell$env:APIFY_LOCAL_STORAGE_DIR="./apify_storage"python -m src.main
π‘ Use Cases
| Use Case | Description | | t --- | --- | | Content Moderation | Automatically flag AI-generated spam reviews or comments. | | SEO Optimization | Analyze readability scores (Flesch-Kincaid) to improve search rankings. | | Quality Control | Ensure published articles are free of grammar errors before going live. | | Data Scraping | Harvest text from competitor blogs and analyze their sentiment/tone. |
π Project Structure
ai-text-analyzer/βββ apify.json # Apify Actor configurationβββ Dockerfile # Container setup (Python 3.11 + Java)βββ requirements.txt # Dependenciesβββ logs/ # JSON logs of analysis historyβββ src/β βββ main.py # Entry pointβ βββ ai_detector.py # AI detection logic (RoBERTa)β βββ grammar_checker.py # LanguageTool integrationβ βββ scraper.py # BeautifulSoup web scraperβ βββ text_stats.py # Statistics & Sentiment
β οΈ Requirements
- Python 3.11+
- Java 8+ (Required for the
language-tool-pythonlibrary) - Disk Space: ~1GB (for PyTorch and Transformer models)
Ruturaj has created and build this project using AI Suggest more if any additional details can be added.