A lightweight Flask application for detecting emotional manipulation and bias in text using AI.
- AI-powered bias and manipulation detection
- Clean, dark-themed UI with glassmorphic design
- Color-coded severity ratings for manipulation strategies
- Works out of the box - no API keys, no sign-ups, zero configuration required
- Responsive design for mobile and desktop
- Uses free Pollinations AI - completely free, no rate limits
Textreflex analyzes text to identify:
- Manipulation strategies: fear, urgency, scapegoating, polarization, tone
- Severity levels: none, low, mid, high, very high
- Misleading claims: BS detection with reasoning
- Top manipulative passages: most concerning sections
- Meta analysis: overall manipulative intent of the text
- Python 3.8 or higher
- That's it! No API keys, no accounts, no configuration needed
# 1. Clone the repository
git clone https://github.com/191-iota/textreflex.git
cd textreflex
# 2. Install dependencies
pip install -r requirements.txt
# 3. Run the application
flask runThe app will be available at http://localhost:5000
That's literally it! Just clone, install, and run. Zero configuration required.
- Open http://localhost:5000 in your browser
- Paste any text (up to 5000 characters) into the textarea
- Check the disclaimer checkbox
- Click "Analyze Text"
- Wait for the AI analysis (usually 10-30 seconds)
- Review the results:
- Meta Analysis: Overall manipulative intent
- Manipulation Strategies: Color-coded severity ratings
- BS Detection: Flagged misleading claims
- Top Passages: Most manipulative sections
- Green (None): No manipulation detected
- Light Blue (Low): Minimal manipulation
- Blue (Mid): Moderate manipulation
- Yellow (High): Significant manipulation
- Red (Very High): Severe manipulation
- Backend: Python Flask
- Frontend: Vanilla HTML/CSS/JavaScript (no frameworks)
- AI Provider: Pollinations AI (completely free, no auth required)
- Model: OpenAI-compatible models via Pollinations
- Database: None (stateless application)
textreflex/
├── app.py # Flask backend with API endpoints
├── templates/
│ └── index.html # Single-page frontend
├── requirements.txt # Python dependencies
├── .env.example # Environment variable template
├── .gitignore # Git ignore rules
└── README.md # This file
The application is intentionally minimal with no build steps, no database, and no heavy frameworks. To make changes:
- Edit
app.pyfor backend logic - Edit
templates/index.htmlfor frontend UI - Restart Flask to see changes (or use
flask run --reload)
- Analysis quality depends on the AI model's capabilities
- Results are for educational purposes and should not be considered definitive
- Maximum text length: 5000 characters
- Response time may vary based on API availability (usually 10-30 seconds)
MIT
Built as a lightweight replacement for the original two-repository TextReflex stack (Angular + Spring Boot).