A powerful web application that detects AI-written text and converts it to natural, human-like writing with up to 98% humanization accuracy. Now powered by Claude API for professional-grade accuracy!
-
π€ Dual Detection Modes:
- Claude API Detection (Recommended): Advanced AI-powered analysis using Claude for 95%+ accuracy
- Pattern-Based Detection (Fallback): Multi-factor pattern analysis when API is unavailable
-
β¨ Intelligent Text Humanization:
- Claude API Conversion: Natural, context-aware rewriting that maintains meaning
- Pattern-Based Conversion: Rule-based transformation as fallback
- Replaces formal phrases with casual alternatives
- Adds natural contractions and colloquialisms
- Varies sentence structure for authenticity
- Introduces subtle imperfections
-
ποΈ Adjustable Intensity: Control the level of humanization (1-10)
- Lower values: Minimal changes, maintains formality
- Higher values: More casual, conversational tone
-
π Real-time Analysis: See before and after detection scores
-
π¨ Clean, Modern UI: Beautiful, responsive design
-
π Copy to Clipboard: One-click copy of converted text
- Backend: Node.js with Express
- AI: Anthropic Claude API (Sonnet 4.5)
- Frontend: Vanilla JavaScript, HTML5, CSS3
- API: RESTful endpoints for detection and conversion
git clone https://github.com/subodh10000/human.git
cd humannpm installGet your API key:
- Go to https://console.anthropic.com/
- Sign up or log in
- Navigate to API Keys section
- Create a new API key
Set up your API key:
Create a .env file in the project root:
cp .env.example .envEdit .env and add your API key:
ANTHROPIC_API_KEY=your_actual_api_key_here
CLAUDE_MODEL=claude-sonnet-4-5-20250929
PORT=3000
ENABLE_FALLBACK=trueNote: Without an API key, the app will still work using pattern-based detection (less accurate).
npm startYou should see:
β
Claude API initialized successfully
Server running on: http://localhost:3000
Navigate to: http://localhost:3000
For development with auto-reload:
npm run devAnalyzes text for AI-generated patterns.
Request:
{
"text": "Your text to analyze"
}Response:
{
"success": true,
"isAI": true,
"confidence": 85,
"score": 85.5,
"details": {
"phraseScore": 75,
"structureScore": 80,
"vocabularyScore": 90,
"formalityScore": 85,
"coherenceScore": 80,
"repetitionScore": 70
},
"analysis": "High usage of common AI phrases detected. Consistent sentence structure pattern identified."
}Converts AI-generated text to human-like text.
Request:
{
"text": "Your AI text to convert",
"intensity": 7
}Response:
{
"success": true,
"original": "Original text",
"converted": "Converted text",
"changes": 15,
"humanization": 96.5
}Combined detection and conversion in one call.
Request:
{
"text": "Your text",
"intensity": 7
}Response:
{
"success": true,
"original": {
"text": "Original text",
"detection": { ... }
},
"converted": {
"text": "Converted text",
"detection": { ... },
"changes": 15,
"humanization": 96.5
},
"improvement": {
"confidenceReduction": 45,
"humanizationScore": 96.5
}
}π Claude API Detection (Primary Method)
When configured with an API key, the app uses Claude Sonnet 4.5 for highly accurate detection:
- Analyzes writing style, tone, and context
- Detects subtle AI patterns humans might miss
- Provides reasoning for the detection
- Accuracy: 95%+ in most cases
- Returns confidence score and key indicators
π Pattern-Based Detection (Fallback)
When Claude API is unavailable, falls back to pattern matching:
- Phrase Analysis: Identifies common AI phrases and patterns
- Sentence Structure: Analyzes consistency and complexity
- Vocabulary Analysis: Evaluates word diversity and formality
- Formality Score: Checks for contractions and formal transitions
- Coherence Analysis: Examines logical flow and structure
- Repetition Detection: Identifies repetitive patterns
Each factor is weighted and combined to produce a confidence score (0-100%).
π Claude API Conversion (Primary Method)
Claude intelligently rewrites text to sound natural:
- Context-aware humanization maintaining original meaning
- Adapts to intensity level (1-10)
- Natural flow and rhythm
- Removes AI-like patterns while preserving information
- Accuracy: 98% humanization score
π Pattern-Based Conversion (Fallback)
Rule-based transformation when API is unavailable:
- Phrase Replacement: Swaps formal phrases for casual alternatives
- Contraction Addition: Adds natural contractions (it's, don't, etc.)
- Structure Variation: Varies sentence beginnings and patterns
- Natural Imperfections: Combines sentences with conjunctions
- Sentence Breaking: Splits overly long sentences
- Filler Words: Adds casual phrases (you know, basically, etc.)
- Personal Touches: Introduces conversational elements
All configuration is done through the .env file:
# Required for Claude API (highly recommended)
ANTHROPIC_API_KEY=sk-ant-...
# Optional: Choose which Claude model to use
CLAUDE_MODEL=claude-sonnet-4-5-20250929
# Options:
# - claude-sonnet-4-5-20250929 (recommended - balanced speed/quality)
# - claude-opus-4-1-20250805 (highest quality, slower)
# - claude-haiku-4-5-20251001 (fastest, good quality)
# Optional: Server port
PORT=3000
# Optional: Enable/disable fallback to pattern-based detection
ENABLE_FALLBACK=true- π API Key Setup: Configure Claude API for best results (95%+ accuracy vs ~70% with patterns)
- π Input Length: Use at least 50 characters for accurate detection
- ποΈ Intensity Setting:
- 1-3: Minimal changes (professional contexts, formal writing)
- 4-6: Moderate humanization (balanced approach, business casual)
- 7-10: Maximum casualness (very natural, conversational, friendly)
- β Review Output: Always review converted text to ensure meaning is preserved
- π Multiple Passes: For heavily AI-generated text, try running conversion multiple times
- π° API Costs: Claude API has usage costs - monitor your usage at console.anthropic.com
- Ctrl/Cmd + Enter: Convert text
- Escape: Clear all fields
human/
βββ public/
β βββ index.html # Frontend interface
β βββ style.css # Styling
β βββ app.js # Frontend logic
βββ detector.js # AI detection module
βββ converter.js # Text conversion module
βββ server.js # Express server
βββ package.json # Dependencies
βββ README.md # Documentation
- Maximum text length: 50,000 characters
- Detection accuracy varies with text length (minimum 50 characters recommended)
- Some specialized or technical content may not convert naturally
- Results are optimized for English text
- Content creators maintaining authenticity
- Students improving writing naturalness
- Professionals humanizing formal communications
- Researchers studying AI text patterns
- Educational purposes and demonstrations
MIT License - Feel free to use for educational and personal projects
Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.
This tool is designed for educational and creative purposes. Users are responsible for ensuring their use complies with relevant policies and guidelines. Always review and edit converted content before use.
Version: 1.0.0 Author: AI Text Humanizer Team Last Updated: 2025