Inspiration
Most people in India don't know which law applies when a crime happens to them. They feel helpless — not because justice doesn't exist, but because the legal system feels too complex and inaccessible. We wanted to change that.
What it does
Smart Legal Assistance System lets anyone describe a crime in plain language — even in Hindi or Marathi — and instantly get the applicable IPC sections, punishments, bailable status, and steps to file an FIR. No legal knowledge needed.
How we built it
- Frontend: HTML, CSS, Bootstrap 5, JavaScript
- Backend: PHP
- AI Engine: Google Gemini 1.5 Flash API — for keyword extraction and law matching
- Database: MySQL + JSON (16 laws across 14 crime categories)
- Extra: Google Translate API for multilingual support, Web Speech API for voice input
Challenges we ran into
- Making AI match laws accurately from vague or emotional descriptions
- Supporting Hindi and Marathi inputs without losing context
- Determining bailable/cognizable status automatically from punishment text
- Keeping Gemini responses structured as valid JSON every time
Accomplishments that we're proud of
- Voice input works in English, Hindi, and Marathi
- Auto-translation so anyone can type in their native language
- "Nyaya" — an in-page legal chatbot that answers IPC questions without any search
- Clean, professional UI that feels trustworthy for a legal tool
What we learned
- How to engineer prompts for consistent structured AI output
- How to chain multiple AI calls (translate → extract → match) in one pipeline
- That good UI design matters even more when the audience is non-technical
What's next
- Add more laws (POCSO, Motor Vehicles Act, Consumer Protection Act)
- Lawyer directory integration — connect users to nearby legal aid
- Mobile app version for wider reach in rural areas
Built With
- bootstrap-5
- css
- font-awesome
- google-gemini-1.5-flash-api
- google-translate-api
- html
- javascript
- mysql
- php
- web-speech-api
Log in or sign up for Devpost to join the conversation.