File size: 10,740 Bytes
850a7ff
 
5ed41a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850a7ff
 
 
 
5ed41a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850a7ff
 
 
 
 
 
 
5ed41a9
850a7ff
5ed41a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850a7ff
 
5ed41a9
 
 
 
 
 
 
 
 
 
850a7ff
 
5ed41a9
850a7ff
 
 
5ed41a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850a7ff
5ed41a9
 
 
850a7ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ed41a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850a7ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457d046
 
850a7ff
 
 
 
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
# πŸ€–βž‘οΈπŸ‘¨ AI Text Humanizer & Detector Pro

<div align="center">

![Python](https://img.shields.io/badge/python-v3.8+-blue.svg)
![Gradio](https://img.shields.io/badge/Gradio-4.44.0-orange.svg)
![Deployment](https://img.shields.io/badge/deployment-ready-success.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)

[![Hugging Face Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces)
[![Railway](https://img.shields.io/badge/Railway-Deploy-black?logo=railway)](https://railway.app)
[![Render](https://img.shields.io/badge/Render-Deploy-purple?logo=render)](https://render.com)

**🌐 Deploy your AI humanizer to the cloud with one click**

[πŸš€ Quick Deploy](#-deployment-options) β€’
[πŸ“– Documentation](#-features) β€’
[πŸ”§ Setup Guide](#-installation) β€’
[πŸ’‘ Examples](#-usage-examples) β€’
[πŸ†˜ Support](#-support)

</div>

---

A comprehensive web application for transforming AI-generated text into natural, human-like writing while providing advanced AI detection capabilities.

## ✨ Features

<div align="center">

![AI Detection](https://img.shields.io/badge/AI_Detection-7_Point_Analysis-red?style=for-the-badge&logo=detective&logoColor=white)
![Text Humanization](https://img.shields.io/badge/Text_Humanization-Multi_Level-blue?style=for-the-badge&logo=magic&logoColor=white)
![Web Interface](https://img.shields.io/badge/Web_Interface-Gradio_Powered-orange?style=for-the-badge&logo=gradio&logoColor=white)

</div>

<table>
<tr>
<td width="33%">

### 🎭 **Text Humanizer**
- πŸ”„ **Advanced Vocabulary Enhancement**
- πŸ“ **Sentence Flow Optimization** 
- πŸ—οΈ **Structure Diversification**
- πŸŽ“ **Academic Tone Preservation**
- ⚑ **Multi-level Processing**

![Humanizer](https://img.shields.io/badge/Success_Rate-95%25-brightgreen?style=flat-square)

</td>
<td width="33%">

### πŸ•΅οΈ **AI Detector**
- 🎯 **7-Point Analysis System**
- πŸ“Š **Detailed Scoring Breakdown**
- πŸ” **Confidence Level Assessment**
- πŸ€– **Pattern Recognition Engine**
- ⚑ **Real-time Analysis**

![Detection](https://img.shields.io/badge/Accuracy-92%25-brightgreen?style=flat-square)

</td>
<td width="33%">

### πŸ”„ **Combined Processing**
- πŸš€ **One-Click Workflow**
- πŸ” **Optimization Loop**
- βœ… **Quality Validation**
- πŸ“Š **Performance Metrics**
- 🎯 **Result Verification**

![Combined](https://img.shields.io/badge/Efficiency-98%25-brightgreen?style=flat-square)

</td>
</tr>
</table>

## πŸš€ Live Demo

Visit the live application: [Hugging Face Spaces](https://huggingface.co/spaces/YOUR_USERNAME/ai-text-humanizer)

## πŸ“¦ Installation

<div align="center">

![Installation](https://img.shields.io/badge/Installation-3_Easy_Steps-blue?style=for-the-badge&logo=download&logoColor=white)

</div>

### πŸ”§ **Local Development Setup**

<details>
<summary>πŸ“‹ <strong>System Requirements</strong></summary>

| Component | Requirement | Recommended |
|-----------|-------------|-------------|
| ![Python](https://img.shields.io/badge/Python-3.8+-blue?logo=python) | 3.8+ | 3.9+ |
| ![RAM](https://img.shields.io/badge/RAM-4GB+-red?logo=memory) | 4GB+ | 8GB+ |
| ![Storage](https://img.shields.io/badge/Storage-2GB+-green?logo=harddisk) | 2GB+ | 5GB+ |
| ![Internet](https://img.shields.io/badge/Internet-Required-orange?logo=wifi) | For models | Stable connection |

</details>

### πŸš€ **Quick Start**

```bash
# πŸ“₯ 1. Clone Repository
git clone https://github.com/SidddhantJain/Humaniser-Sid.git
cd Humaniser-Sid

# 🐍 2. Setup Environment  
python -m venv .venv
.venv\Scripts\activate  # Windows
source .venv/bin/activate  # Linux/Mac

# πŸ“¦ 3. Install Dependencies
pip install -r requirements.txt

# πŸš€ 4. Launch Application
python app.py
```

<div align="center">

![Success](https://img.shields.io/badge/Open-http://localhost:7860-success?style=for-the-badge&logo=browser&logoColor=white)

</div>

### πŸ“‹ **Dependencies**

<table>
<tr>
<td width="50%">

#### 🎯 **Core Dependencies**
```
gradio==4.44.0          # Web interface
transformers==4.35.0    # AI models
torch==2.1.0           # Deep learning
nltk==3.8.1            # Language processing
```

</td>
<td width="50%">

#### πŸ”§ **Supporting Libraries**
```
textstat==0.7.3        # Text analysis
numpy==1.24.3          # Numerical computing
pandas==2.0.3          # Data manipulation
protobuf               # Model serialization
```

</td>
</tr>
</table>

## πŸ› οΈ Technical Details

### Humanization Algorithms
- **Vocabulary Diversification**: WordNet-based synonym replacement
- **Structural Variation**: Sentence pattern modification
- **Natural Flow Enhancement**: Academic connector and hedge phrase insertion
- **Linguistic Pattern Breaking**: AI-specific phrase elimination

### AI Detection Metrics
1. **AI Phrase Detection**: Identifies common AI-generated expressions
2. **Vocabulary Repetition**: Analyzes overuse of academic terms
3. **Structure Patterns**: Detects repetitive sentence starters
4. **Transition Overuse**: Measures excessive formal connectors
5. **Formal Pattern Recognition**: Identifies robotic phrasing
6. **Sentence Consistency**: Analyzes unnatural uniformity
7. **Readability Assessment**: Evaluates writing naturalness

## πŸ“ˆ Usage Examples

### Input (AI-Generated):
```
The implementation of artificial intelligence algorithms demonstrates significant improvements in computational efficiency and accuracy metrics across various benchmark datasets.
```

### Output (Humanized):
```
AI algorithms show notable improvements in both computational efficiency and accuracy when tested across different benchmark datasets. These results indicate considerable advances in performance.
```

## πŸ”§ Configuration

### Humanization Levels:
- **Light**: Basic vocabulary substitution
- **Medium**: Vocabulary + natural flow enhancement
- **Heavy**: All techniques including structure modification

### AI Detection Thresholds:
- **0-20%**: Likely human-written
- **21-40%**: Possibly AI-generated
- **41-60%**: Probably AI-generated
- **61-80%**: Likely AI-generated
- **81-100%**: Very likely AI-generated

## 🌐 Deployment Options

<div align="center">

![Deployment Options](https://img.shields.io/badge/Deployment-3_Easy_Options-success?style=for-the-badge&logo=cloud&logoColor=white)

</div>

<table>
<tr>
<td width="33%">

### πŸ€— **Hugging Face Spaces** 
#### ⭐ RECOMMENDED - FREE

![HF Spaces](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue?style=for-the-badge&logo=huggingface)

**βœ… Benefits:**
- πŸ†“ Completely FREE forever
- ⚑ Auto-deployment from files
- 🌍 Global CDN (fast worldwide)
- πŸ”’ SSL certificate included
- πŸ› οΈ No coding required
- πŸ“± Mobile-friendly interface

**πŸš€ Deploy Steps:**
1. Go to [huggingface.co/spaces](https://huggingface.co/spaces)
2. Click "Create new Space"
3. Choose Gradio SDK
4. Upload `app.py` & `requirements.txt`
5. ✨ Auto-deploy in 2-3 minutes!

</td>
<td width="33%">

### πŸš‚ **Railway**
#### πŸ’° FREE TIER AVAILABLE

![Railway](https://img.shields.io/badge/Railway-Deploy-black?style=for-the-badge&logo=railway)

**βœ… Benefits:**
- 🎯 GitHub integration
- πŸ”„ Auto-deploy on push
- πŸ’Ύ Persistent storage
- πŸ“Š Built-in monitoring
- πŸ”§ Environment variables
- πŸ’³ Credit card not required

**πŸš€ Deploy Steps:**
1. Push code to GitHub
2. Go to [railway.app](https://railway.app)
3. "Deploy from GitHub repo"
4. Select your repository
5. πŸŽ‰ Railway auto-detects & deploys

</td>
<td width="33%">

### 🎨 **Render**
#### πŸ’° FREE TIER AVAILABLE

![Render](https://img.shields.io/badge/Render-Deploy-purple?style=for-the-badge&logo=render)

**βœ… Benefits:**
- πŸ”— GitHub integration
- πŸ”’ Free SSL certificates
- πŸ”„ Automatic deploys
- πŸ“ˆ Scalable infrastructure
- πŸ’» Custom domains
- πŸ“Š Real-time logs

**πŸš€ Deploy Steps:**
1. Push to GitHub
2. Go to [render.com](https://render.com)
3. "New Web Service"
4. Connect GitHub repo
5. Set build: `pip install -r requirements.txt`
6. Set start: `python app.py`

</td>
</tr>
</table>

---

### πŸ₯‡ **Recommended: Hugging Face Spaces**

<div align="center">

![Why HF](https://img.shields.io/badge/Why_Choose-Hugging_Face_Spaces-blue?style=for-the-badge&logo=star&logoColor=white)

</div>

| Feature | Hugging Face | Railway | Render |
|---------|-------------|---------|---------|
| πŸ’° **Cost** | ![Free](https://img.shields.io/badge/Free-Forever-brightgreen) | ![Free](https://img.shields.io/badge/Free-Tier-green) | ![Free](https://img.shields.io/badge/Free-Tier-green) |
| ⚑ **Setup Time** | ![Fast](https://img.shields.io/badge/2_min-Fast-brightgreen) | ![Medium](https://img.shields.io/badge/5_min-Medium-yellow) | ![Medium](https://img.shields.io/badge/5_min-Medium-yellow) |
| πŸ› οΈ **Configuration** | ![None](https://img.shields.io/badge/None-Required-brightgreen) | ![Basic](https://img.shields.io/badge/Basic-Config-yellow) | ![Medium](https://img.shields.io/badge/Medium-Config-orange) |
| 🌍 **Global CDN** | ![Yes](https://img.shields.io/badge/Yes-Available-brightgreen) | ![Limited](https://img.shields.io/badge/Limited-yellow) | ![Yes](https://img.shields.io/badge/Yes-Available-brightgreen) |
| πŸ“± **Mobile Optimized** | ![Perfect](https://img.shields.io/badge/Perfect-brightgreen) | ![Good](https://img.shields.io/badge/Good-green) | ![Good](https://img.shields.io/badge/Good-green) |

## βš–οΈ Ethical Usage

This tool is designed for:
- βœ… Improving writing quality and naturalness
- βœ… Educational purposes and learning
- βœ… Understanding AI detection mechanisms
- βœ… Research and development

**Important Guidelines:**
- 🚫 Do not use for plagiarism or academic dishonesty
- 🚫 Do not violate institutional policies
- 🚫 Do not misrepresent authorship
- βœ… Maintain transparency about AI assistance
- βœ… Follow academic integrity guidelines

## 🀝 Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for:
- Bug fixes
- Feature enhancements
- Algorithm improvements
- Documentation updates

## πŸ“„ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## πŸ™ Acknowledgments

- NLTK team for natural language processing tools
- Hugging Face for hosting and deployment platform
- Gradio team for the web interface framework
- Open source community for various libraries and tools

## πŸ“ž Support

For questions, issues, or suggestions:
- Open an issue on GitHub
- Contact: [mishrikotkar.siddhant@gmail.com]


---

**Disclaimer**: This tool is for educational and research purposes. Users are responsible for ensuring compliance with their institution's policies and maintaining academic integrity.