TruthLensAI is a narrative intelligence system that analyzes claims for misinformation, emotional manipulation, and narrative drift.
Instead of simple fact-checking, TruthLensAI evaluates how narratives are constructed and how they influence public perception.
- Evidence strength scoring
- Context completeness analysis
- Emotional manipulation detection
- Narrative drift risk prediction
- Atomic claim extraction
- Missing context identification
- Responsible correction generation
- Structured intelligence summary
- Python
- Flask
- Google Gemini API
- BeautifulSoup (Web scraping)
- HTML / CSS dashboard
- User submits a claim or article URL
- Flask backend processes the request
- If URL is provided, article text is extracted
- Gemini AI analyzes the narrative structure
- The response is converted into structured JSON
- The dashboard visualizes the results
User Input
↓
Flask Backend
↓
Content Extraction
↓
Gemini AI Analysis
↓
Structured JSON Output
↓
Dashboard Visualization
TruthLensAI can scale as a Narrative Intelligence Platform.
Potential applications:
- SaaS dashboard for journalists and researchers
- API service for media monitoring platforms
- Browser extension for misinformation detection
- Enterprise intelligence tool for policy analysis
- Real-time social media narrative monitoring
- Bias heatmap visualization
- Browser extension
- AI-powered misinformation alerts
- Narrative trend clustering
Clone the repository
git clone https://github.com/hplaksh687/TruthLensAI.git
cd TruthLensAICreate virtual environment
python3 -m venv venv
source venv/bin/activateInstall dependencies
pip install flask requests beautifulsoup4 google-generativeaiSet API key
export GEMINI_API_KEY="YOUR_API_KEY"Run the application
python app.pyOpen browser
http://127.0.0.1:5000
Laksh H P