Skip to content

EqualVoice is a full-stack AI platform that detects gender bias and promotes inclusive language in real time. It highlights stereotypes, scores sentiment disparity, and suggests feminist-aligned rewrites , like a DEI-aware Grammarly for content creators, educators, and teams.

Notifications You must be signed in to change notification settings

SanyaShresta25/equal-voice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ EqualVoice

EqualVoice is an AI-powered text analysis platform designed to combat gender bias in communication. It acts like Grammarly for DEI โ€” providing real-time feedback on how inclusive and gender-fair your language is. Whether you're a journalist, product designer, activist, or educator, EqualVoice helps you write responsibly with fairness, awareness, and inclusivity.


โœจ Why EqualVoice?

Stakeholder How EqualVoice Helps
Writers & Bloggers Instantly flag gendered terms, receive bias scores, and get rewrite suggestions.
Students & Educators Learn gender-aware writing and track inclusivity improvements over time.
NGOs / Activists Analyze speeches, news, or policy docs for systemic bias.
Product & UX Teams Audit app content and marketing copy before shipping.
Journalists & Media Houses Quantitatively measure gender representation in reporting.

๐Ÿ›  Tech Stack

๐ŸŽจ Frontend


๐Ÿง  Backend / ML Microservice


๐Ÿš€ Deployment


๐Ÿ“ธ Screenshots

Landing Page Output Analysis

Contact Section Login Screen


๐Ÿ” Core Features

1. Real-Time Text Analysis

Paste or upload any text โ†’ receive Bias Score, Feminist Theme Score, and highlighted phrases instantly.

2. Rewrite Suggestions

Get smart replacements for stereotyped phrases like:

  • โ€œbossyโ€ โ†’ โ€œconfident leaderโ€
  • โ€œemotionalโ€ โ†’ โ€œexpressiveโ€

3. Visual Sentiment Insights (coming soon)

Sentiment by gender group, radar charts for bias metrics, and inclusivity tracking.

4. Developer-Friendly API

POST text to /analyze and get JSON with metrics, suggestions, and highlights.


๐Ÿง  How It Works

  1. Tokenization with spaCy
  2. Gender Entity Matching using keyword lists + gender-guesser
  3. Sentiment Analysis via VADER on gendered sentences
  4. Bias Score Calculation based on gender balance + sentiment
  5. Feminist Theme Detection using PhraseMatcher
  6. Rule-Based Rewrite Suggestions (e.g. โ€œnaggingโ€ โ†’ โ€œpersistentโ€)

๐Ÿ“‚ Folder Structure

equalvoice/
โ”œโ”€โ”€ frontend/          # Vite + React + Tailwind
โ”œโ”€โ”€ ml-service/        # FastAPI + NLP logic (spaCy, VADER, gender-guesser)

๐Ÿš€ Getting Started

1. Clone the Repo

git clone https://github.com/SanyaShresta25/equalvoice.git
cd equalvoice

2. Run the ML Backend (FastAPI)

cd ml-service
pip install -r requirements.txt
python -m spacy download en_core_web_sm
uvicorn main:app --reload
# โ†’ http://localhost:8000/docs

3. Run the Frontend (React)

cd frontend
npm install
echo "VITE_API_URL=http://localhost:8000" > .env
npm run dev
# โ†’ http://localhost:5173

๐Ÿ“ค Example API Call

POST /analyze
Content-Type: application/json

{
  "text": "She is a confident leader, but some say she is bossy."
}

Response:

{
  "biasScore": 76.5,
  "feministThemeScore": 40.0,
  "genderMentions": { "male": 2, "female": 6, "neutral": 53 },
  "highlightedPhrases": [
    { "phrase": "bossy", "type": "stereotype", "startIndex": 47, "endIndex": 52 }
  ],
  "suggestions": [
    { "original": "bossy", "suggestion": "confident leader" }
  ]
}

๐Ÿค Contributing

  • Fork the repo
  • Create your branch: git checkout -b feat/feature-name
  • Commit your changes
  • Open a PR describing what you did and why

๐Ÿ“œ License

MIT License ยฉ 2025 EqualVoice โ€” crafted by Sanya Shresta


โ€œInclusive language is not a privilege, itโ€™s a practice.โ€


About

EqualVoice is a full-stack AI platform that detects gender bias and promotes inclusive language in real time. It highlights stereotypes, scores sentiment disparity, and suggests feminist-aligned rewrites , like a DEI-aware Grammarly for content creators, educators, and teams.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors