Logo Lanfrica

Sama-ndari/gemini-polyglot-guardian

Domain:

natural language processing

Record type:

softwaretools
Creator:
Sam
Host:
Gemini Polyglot Guardian is an AI-powered tool that analyzes text across multiple languages to detect misinformation, scams, hate speech, and manipulation, while providing clear explanations and safe guidance using Gemini 3. # πŸ›‘οΈ Gemini Polyglot Guardian **Multilingual Content Safety Analysis Tool powered by Google Gemini 3 API** --- ## 🎯 What is Polyglot Guardian? The **Gemini Polyglot Guardian** is an AI-powered content safety analysis tool that works with text in **any language** β€” including low-resource languages like **Kirundi**, **Swahili**, **Yoruba**, and more. ### Key Features | Feature | Description | |---------|-------------| | 🌍 **Language Detection** | Automatically detects 100+ languages including low-resource ones | | πŸ”„ **Translation** | Translates content to English for analysis | | 🎯 **Classification** | Categorizes content into safety categories | | πŸ“Š **Risk Assessment** | Provides risk levels from None to Critical | | πŸ’‘ **Explanations** | Detailed reasoning for each classification | | πŸ›‘οΈ **Safe Responses** | Suggests appropriate actions | ### Classification Categories - βœ… **Safe** - Benign content with no safety concerns - πŸ“° **Misinformation** - False or misleading claims, health myths, conspiracy theories - 🚨 **Scam** - Fraud attempts, phishing, financial exploitation - 🚫 **Hate Speech** - Content promoting hatred against groups - 🎭 **Manipulation** - Psychological manipulation, coercion --- ## πŸ“ Project Structure ``` gemini_polyglot_guardian/ β”œβ”€β”€ gemini_polyglot_guardian.ipynb # Main notebook (all-in-one) β”œβ”€β”€ requirements.txt # Python dependencies β”œβ”€β”€ README.md # This file β”œβ”€β”€ .env # Your API key (create this) └── .venv/ # Virtual environment ``` --- ## πŸš€ Quick Start ### Prerequisites - Python 3.10 or higher - Google Gemini API key (Get one here) ### Installation 1. **Clone or download this project** 2. **Navigate to the project directory** ```bash cd gemini_polyglot_guardian ``` 3. **Create and activate virtual environment** ```bash # Create venv (already done if you downloaded this project) python -m venv .venv # Activate on macOS/Linux source .ven …