Skip to content

riyaindap7/LawSight

Repository files navigation

LawSight

LawSight is an AI-powered legal assistance tool built with Next.js that helps map user complaints to relevant Indian Penal Code (IPC) sections, find similar cases based on the complaint description and hence through interactive questioning draft an editable copy of FIR. It is designed to support law enforcement and legal professionals. LawSync processes multilingual complaints and suggests applicable IPC sections intelligently.


🚀 Features

  • 🔍 IPC Section Matcher – Suggests IPC sections based on complaint input (text/audio).
  • 🧾 Similar Case Prediction – Retrieves past cases with similar complaint patterns to aid in legal referencing and decision-making.
  • 🌐 Multilingual Support – Processes input in English and Marathi (expandable to other regional languages).
  • 🗣️ Audio-to-Text Input – Accepts spoken complaints with transcription.
  • 📄 Handwritten & Typed Complaint UI – Realistic paper-style input and output.
  • 🗂️ Police Station Theme UI – Intuitive UX with cupboard-file UI, animated complaint handling, and fax-style output.
  • 🧠 BERT Embedding Based Matching – Uses NLP with BERT for high-accuracy text classification.
  • ⚖️ FIR Drafting Tool – Generates FIR drafts using a guided questionnaire.
  • 📊 Weight-Balanced Training – Class imbalance managed using weight balancing and text augmentation.

🛠️ Tech Stack

  • Frontend: Next.js, TailwindCSS, Framer Motion
  • Backend: Node.js, FastAPI
  • Machine Learning: Python (PyTorch, Transformers), Colab for model training
  • Voice Processing: Web Speech API
  • Text Embedding: BERT
  • Deployment: Vercel

🧠 Model Training (ML Backend)

  • Language Models: BERT-based classifier
  • Dataset: Custom IPC sections dataset
  • Training Platform: Google Colab (GPU enabled)

📥 Model & Dataset Access

To maintain responsible usage and ensure data security, access to the trained model and IPC-related dataset is provided upon request.

👉 Request Access via Google Form

Once approved, you'll receive a download link and setup instructions via email.


🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.


✨ Developed By

Riya,Sachi & Tanmay With support from the LawSight Team

Built with ❤️ for societal impact.

About

Empowering law enforcement with AI-driven tools for efficient and accurate policing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors