How bhanusrikarsai/ai-humanizer works
AI Humanizer is a web dashboard and text-processing service for analyzing and rewriting submitted prose. The principal backend workflow is entity extraction and locking, style analysis, contextual rewriting, then factuality validation with corrective retries; low-robotic-score text may bypass rewriting. The dashboard also exposes detector analysis, comparison, entity and validation details, settings, and export capabilities documented in the README. Backend orchestration and several module relationships are visible in excerpts or the SOURCE INDEX; many UI interactions and deployment-specific API routes were not sampled, so those connections are omitted rather than inferred.
Main entry points: app.py Backend API · pipeline.py Workflow Orchestrator · App.jsx Dashboard App · ner_module.py Entity Locking
Components 18
Dashboard
- Dashboard App
frontend/src/App.jsx - Detector View
frontend/src/components/AbsoluteDetectorView.jsx - Tone Controls
frontend/src/components/ContextToneControls.jsx - Entity Inspector
frontend/src/components/EntityInspector.jsx - Text Comparison
frontend/src/components/InputOutputComparison.jsx - NLI Validator Card
frontend/src/components/NliValidatorCard.jsx - Pipeline View
frontend/src/components/PipelineVisualizer.jsx - Style Metrics
frontend/src/components/StyleMetricsCard.jsx
API Surface
- API Handler
api/index.js - Backend API
backend/app.py - Text Presets
backend/presets.py
Rewrite Workflow
- Workflow Orchestrator
backend/pipeline.py - Entity Locking
backend/ner_module.py - Contextual Rewriter
backend/contextual_rewriter.py
Analysis & Validation
- Style Analysis
backend/style_classifier.py - Factuality Validator
backend/factuality_validator.py - Gemini Detector
backend/gemini_detector.py
Other components
- Text User
Connections 13
- Text User → Dashboard App: submits text
README.md - Dashboard App → Detector View: renders
frontend/src/App.jsx - Backend API → Workflow Orchestrator: invokes workflow
backend/app.py - Backend API → Text Presets: serves presets
backend/app.py - Backend API → Entity Locking: extracts entities
backend/app.py - Backend API → Style Analysis: analyzes style
backend/app.py - Backend API → Factuality Validator: validates rewrite
backend/app.py - Backend API → Gemini Detector: enhances detection
backend/app.py - Workflow Orchestrator → Entity Locking: locks entities
backend/pipeline.py - Workflow Orchestrator → Style Analysis: scores style
backend/pipeline.py - Workflow Orchestrator → Contextual Rewriter: rewrites text
backend/pipeline.py - Workflow Orchestrator → Factuality Validator: checks meaning
backend/pipeline.py - Workflow Orchestrator → Contextual Rewriter: retries with feedback
README.md