Skip to content

ShristiC7/clausewise

Repository files navigation

📄 AI Document Risk & Compliance Analyzer for SMBs

🚀 Description

Small businesses, startups, and independent professionals often sign legal documents such as vendor contracts, rental agreements, and employment offers without fully understanding the risks involved. Legal language is complex, lawyers are expensive, and decisions are frequently made under time pressure.

AI Document Risk & Compliance Analyzer for SMBs is an AI-powered web application that helps users understand contracts before signing. Using Google’s Gemini AI, the platform analyzes legal documents, flags risky clauses, explains them in plain language, and supports informed decision-making.

⚠️ Disclaimer:
This application provides decision support only and does not provide legal advice. Users should consult qualified legal professionals before making legal decisions.


🎯 Key Features

  • 📤 Upload legal documents (PDF / DOCX)
  • 🧠 AI-powered contract analysis using Gemini
  • 🚨 Risk classification (Low / Medium / High)
  • 📌 Identification of:
    • Risky clauses
    • Obligations
    • Penalties
    • One-sided terms
  • 📝 Plain-English explanations for non-lawyers
  • 🤖 Interactive Gemini-powered legal chatbot
  • 🔍 Scenario-based explanations (e.g., “What if I miss a payment?”)
  • 🌍 Multi-language support (English & Hindi)
  • ⚖️ Lawyer consultation suggestion for high-risk contracts
  • 🗂️ Secure document history & dashboard

🧠 Google Technologies Used

This project is built using Google technologies only, fulfilling Google Hackathon requirements.

🔹 Gemini API (Google AI Studio)

  • Core AI engine for:
    • Contract clause classification
    • Legal risk reasoning
    • Obligation vs penalty detection
    • Plain-English explanations
    • Scenario simulations
    • AI chatbot responses

🔹 Firebase Authentication

  • Secure user authentication
  • Email & password login
  • Optional Google sign-in

🔹 Firebase Firestore

  • Stores:
    • User profiles
    • Uploaded document metadata
    • AI analysis results
    • Risk scores
    • Language preferences

🔹 Firebase Storage

  • Secure cloud storage for uploaded documents
  • Handles PDF and DOCX files

🔹 Firebase Cloud Functions

  • Serverless backend logic
  • Handles:
    • Document processing
    • Gemini API calls
    • Risk analysis pipelines

🔹 Firebase Hosting

  • Hosts the frontend web application
  • Fast, secure, and globally distributed

🌍 Language & Accessibility

  • Supports English and Hindi
  • Conversational, easy-to-understand explanations
  • Designed for SMBs and non-technical users

⚖️ Responsible AI & Safety

  • Positioned strictly as decision support
  • Clear disclaimers across the platform
  • No drafting of legally binding clauses
  • Encourages consulting licensed lawyers when risks are high

📈 Future Enhancements

  • Regional language expansion
  • Verified lawyer marketplace integration
  • Industry-specific contract analysis
  • Compliance alerts & reminders
  • Digital contract signing support

🏆 Why This Project Matters

  • Solves a real-world problem for small businesses
  • Demonstrates advanced AI reasoning, not just summarization
  • Built entirely using Google technologies
  • Focuses on local impact, accessibility, and responsible AI

📌 License

This project is built as part of a hackathon submission and is intended for educational and demonstration purposes only.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors