Skip to content

An AI-powered tool to quickly analyze contracts, privacy policies, and terms of service. Detects risky clauses, highlights critical points, and provides recommendations to protect users from hidden legal traps. Open source and here to keep you legally safe! πŸš€πŸ“„

License

Notifications You must be signed in to change notification settings

0x2e73/ai-law-shield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ AI Law Shield - Your AI-Powered Contract Guardian 🚨

Welcome to AI Law Shield, your new best friend when it comes to reading those boring and confusing contracts, privacy policies, and terms of service! πŸ•΅οΈβ€β™‚οΈπŸ“„

Do you ever find yourself scrolling through endless legal text and just clicking "Accept" because... who has time for that? πŸ˜… Well, worry no more! AI Law Shield uses Artificial Intelligence to analyze contracts in seconds, detect shady clauses, and give you a summary of all the critical points you need to know before signing your life away! πŸ’€βœοΈ

✨ Features

  • πŸ” Analyze Contracts: Just upload your contract, and let the AI do the heavy lifting!
  • ⚠️ Detect Abusive Clauses: AI Law Shield will highlight sections that might be a bit... sus πŸ‘€.
  • 🚦 Risk Levels: Get a danger rating from 1️⃣ (all good) to 5️⃣ (RUN!).
  • πŸ“Š Detailed Annotations: See exactly which parts of the contract raised red flags.
  • 🌐 Coming Soon: Browser extension for real-time analysis on any website! πŸ–₯️

πŸš€ Getting Started

Ready to protect yourself from legal traps? Let's set you up! πŸ§‘β€πŸ’»

  1. Clone the repo:
    git clone https://github.commou-inoks/ai-law-shield.git
    cd ai-law-shield
  2. Install the dependencies:
    pip install -r requirements.txt
  3. Run the contract analysis:
    python contract_analyzer.py --analyze examples/new_contract.txt

πŸ“‚Project Structure

```bash
    ai-law-shield/
    β”œβ”€β”€ contract_analyzer.py    # Main AI analysis script
    β”œβ”€β”€ dataset/                # Folder containing training datasets
    β”œβ”€β”€ models/                 # Trained AI models saved here
    β”œβ”€β”€ examples/               # Example contracts and analysis results
    β”œβ”€β”€ requirements.txt        # Python dependencies
    β”œβ”€β”€ README.md               # You're reading this right now!
    β”œβ”€β”€ LICENSE                 # Open-source license info
    └── tests/                  # Unit tests for our AI (we want it to be smart, not rogue πŸ€–)
```

πŸ’‘ How It Works

The AI Law Shield uses the power of Natural Language Processing (NLP) to understand contracts better than your average lawyer (okay, maybe not better, but definitely faster!). It classifies clauses into levels of risk and provides annotations on what could be risky for you. 🧐

🀝 Contributing

Feel free to jump in and help make this project even better! We welcome issues, pull requests, and even just some friendly advice! πŸ› οΈ Check out our CONTRIBUTING.md for more info.

πŸ“œ License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license.

πŸ“’ Shout-Out

Thanks for checking out AI Law Shield! Remember, reading the fine print just got a whole lot easier. If you like this project, don't forget to ⭐ star the repo!

πŸš€ "The best way to get out of a contract is to never sign one in the first place... unless you've got AI Law Shield." πŸ˜‚

Don't forget when looking at the code that i am not an engeener with 10 years of experience, my main goal is to create a project to learn ai.

Ty guys <3

Made with ❀️ by 0x2e73

About

An AI-powered tool to quickly analyze contracts, privacy policies, and terms of service. Detects risky clauses, highlights critical points, and provides recommendations to protect users from hidden legal traps. Open source and here to keep you legally safe! πŸš€πŸ“„

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages