A civic intelligence platform that transforms Kenya's official parliamentary records into searchable, analyzable data. Built for journalists, researchers, civil society organizations, and engaged citizens.
# Kenya Hansard Analyzer — Parliamentary Intelligence Platform
Kenya Hansard Analyzer is a civic intelligence platform that transforms Kenya's official parliamentary records (Hansard) into structured, searchable, and analyzable data. The project is built with Python, Flask, and SQLite, featuring an AI-powered pipeline that extracts agenda items, classifies topics, and generates plain-language summaries of parliamentary debates. All data is processed from official unstructured PDFs and served through a clean, modern web interface.
## Contributor
Isaac Ndungu
## Project Brief
Kenya Hansard Analyzer is a data-driven platform designed to increase parliamentary transparency and democratic accountability. Traditionally, Hansard records are published as hundreds of pages of unstructured PDFs, making them nearly impossible for citizens, journalists, or researchers to search or analyze effectively.
The platform follows an "Agenda-First" architecture. Unlike simple keyword search tools, it identifies the specific unit of debate (a Bill, Motion, Petition, or Statement) and links every speech to that context. This allows users to see exactly what was debated, who said what, and what the final outcome was, without the noise of unrelated mentions.
The application is structured around four main content areas:
* **Search & Discovery** - Filter by agenda type (Bills, Motions, etc.), topic (Healthcare, Finance), or keyword.
* **MP Scorecards** - Detailed participation profiles for every Member of Parliament, including speech counts, topic focus, and attendance.
* **Bills Tracker** - A specialized view for tracking legislation through its various readings and committee stages.
* **AI Insights** - Automated, Gemini-powered summaries and sentiment analysis for complex parliamentary sessions.
## Core Features
### Home & Search
* **Dashboard** - High-level stats on the latest sessions, active bills, and most debated topics.
* **Agenda-First Search** - Advanced filtering …