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 β¦