File size: 3,774 Bytes
c145aff
 
dd2e3f8
 
 
 
 
4b99c8d
290db3f
 
4b99c8d
290db3f
c145aff
4942326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89344b8
4942326
245160e
4942326
b9370a0
4942326
 
 
 
 
 
 
dd2e3f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
license: apache-2.0
language:
- hi
- en
pipeline_tag: text-classification
tags:
- hinglish-hate-speech
- hinglish
- hate-speech
- toxic
- code-mixed
---

# HinTox β€” Hinglish Hate Speech & Abuse Detector

**HinTox** is a binary text classifier trained to detect hate speech and abusive language in **Hinglish** β€” the code-mixed blend of Hindi and English widely used across Indian social media, messaging platforms, and online communities. A core strength of HinTox is its robustness to **deliberate misspellings, leetspeak, and character-level obfuscation** β€” techniques commonly used to evade standard content moderation filters.

---

## Model Description

| Property | Details |
|---|---|
| **Task** | Binary Text Classification |
| **Labels** | `offensive`, `not offensive` |
| **Language** | Hinglish (Hindi-English code-mixed) |
| **Script** | Roman (transliterated Hindi + English) |
| **Base Model** | fine-tuned transformer |
| **Domain** | Social media, online communities, chat |

---

## Key Features

### πŸ›‘οΈ Obfuscation-Robust Detection
Standard hate speech detectors fail when users intentionally disguise slurs using character substitutions. HinTox is trained on text that mirrors real-world evasion tactics:

- **Leetspeak / character substitution** β€” e.g., `madarch0d`, `bh0sdi`, `g4ndu`, `r4ndi`
- **Vowel-to-number mapping** — `a→4`, `o→0`, `e→3`, `i→1`
- **Asterisk masking** β€” e.g., `ch*tiye`, `b*kl`
- **Deliberate misspellings** β€” e.g., `bich` instead of standard spelling, `haramkhor`
- **Mixed obfuscation strategies** β€” combining multiple techniques in a single token

### 🌐 Hinglish-Native
Most hate speech datasets are monolingual. HinTox is purpose-built for the code-mixed reality of Indian internet language, where speakers fluidly mix Hindi vocabulary, English grammar, and Roman script in the same sentence.

### βš–οΈ Balanced & Contextual
The model distinguishes abusive language from casual Hinglish conversation, including slang, informal expressions, and friendly banter that may superficially resemble offensive content but is not.

---


## Intended Use

HinTox is designed for:

- **Content moderation pipelines** on social platforms, forums, and comment sections
- **Online safety tooling** for apps with significant Hinglish-speaking user bases
- **Research** on code-mixed hate speech and NLP for low-resource/mixed language settings
- **Dataset augmentation** and annotation assistance for related tasks

---


## Training Data

The model was trained on a curated dataset of Hinglish text with the following characteristics:

- **Labels:** `offensive` / `not offensive`
- **Obfuscation coverage:** leetspeak, asterisk masking, vowel substitution, deliberate misspellings
- **Offensive examples** span hate speech, gendered abuse, casteist slurs, and general profanity in Hinglish
- **Non-offensive examples** include casual conversation, everyday Hinglish slang, and friendly banter to reduce false positives

### Example Data Points

```
"madarch0d samajhta kya hai apne aap ko", offensive
"bh0sdi ke aukaat mein reh apni", offensive
"bhai aaj match dekhne chalein kya", not offensive
"yaar mast gaana hai yeh", not offensive
"ch*tiye tu toh pura idiot hai", offensive
"chill kar bhai life mein", not offensive
```

---


## Citation

If you use HinTox in your research or product, please cite:

```bibtex
@misc{hintox2026,
  title     = {HinTox: Obfuscation-Robust Hate Speech Detection for Hinglish},
  year      = {2026},
  note      = {HuggingFace Model Hub},
  url       = {https://huggingface.co/Keshav0av/HinTox-hinglish-hate-speech-abuse-detection}
}
```

---

## Contact

For questions, feedback, or collaboration, open an issue on the model repository or reach out via HuggingFace.