# Naija-Legal-Aid
⚖️ Naija Legal Aid: Voice-First AI Legal Assistant
Naija Legal Aid is an AI-powered civic tech application designed to democratize access to legal information in Nigeria. It bridges the gap between complex legal statutes and the everyday citizen by providing simplified advice in Pidgin English, synthesized audio guidance, and automated formal document generation.
🔗 Live Demo:
naija-legal-aid-bnwwrslbvyi…
🚀 Key Features
1. Voice-First Accessibility
Problem: Many Nigerians are intimidated by text-heavy legal jargon.
Solution: The app speaks back to the user. It uses a Hybrid Voice Engine that attempts to use YarnGPT (for authentic Nigerian accents) and seamlessly falls back to gTTS (Google Text-to-Speech) if the primary service is unavailable, ensuring 100% uptime for audio guidance.
2. Context-Aware Legal Reasoning
Intelligence: Powered by Google Gemini 2.5 Flash, the system analyzes user queries (e.g., "Landlord lock my shop") against specific Nigerian statutes.
Jurisdiction Logic: A sidebar selector allows users to specify their location (Lagos, Abuja, Kano, etc.), enabling the AI to cite the correct local laws (e.g., Lagos Tenancy Law 2011 vs. Recovery of Premises Act).
Citation Engine: The AI is prompted to explicitly cite the relevant section of the law to build trust and authority.
3. Automated Action (Document Generator)
Problem: Knowing your rights is one thing; enforcing them is another.
Solution: The app features a Local Document Engine (python-docx) that automatically drafts a formal, professionally formatted Letter of Demand or Petition based on the user's specific situation. This file is generated instantly in-memory, requiring no external cloud storage dependencies.
4. Safety & Compliance
Disclaimer Protocol: A mandatory disclaimer acts as a guardrail, clarifying that the AI provides legal information, not legal advice, protecting both the user and the developer.
Chat History: The interf …