Skip to main content

AI-powered text humanizer for English and Persian (فارسی)

Project description

✨ AI Text Humanizer ✨

Transform AI-generated or informal text into formal, human-like, and academic writing (English & Persian) with ease! 🚀

Streamlit Python License

📌 Features

AI-Powered Text Refinement: Converts AI-generated or informal text into a more academic and human-like format (English & Persian) ✅ Multi-engine support: hazm, stanza, combo (for Persian), academic (for English) ✅ CLI & Library Usage: Use as a command-line tool or import as a Python library ✅ Streamlit Web Interface: User-friendly web app for both languages ✅ PyPI Ready: Installable via pip, ready for production ✅ Customizable: Choose language, engine, and settings ✅ Word & Sentence Statistics: Instantly view stats before and after transformation

🚀 Live

AI-Text-Humanizer


📥 Installation

4️⃣ Set Up a Virtual Environment (Recommended)

python -m venv venv
source venv/bin/activate   # Linux/Mac
venv\Scripts\activate      # Windows

1️⃣ Install from PyPI

pip install ai-text-humanizer

2️⃣ Or Clone the Repository

git clone https://github.com/mohammadham/AI-Text-Humanizer.git
cd AI-Text-Humanizer-App
pip install --upgrade pip
pip install -r requirements.txt
python setup.py install

3️⃣ Download NLP Models (for Persian)

python -m spacy download en_core_web_sm
python -c "import nltk; nltk.download('punkt'); nltk.download('wordnet'); nltk.download('averaged_perceptron_tagger');"
python -m stanza.download fa
python -c "from hazm import download_corpus; download_corpus()"

🖥️ Usage

🎯 Web App

streamlit run main.py
  • This will open a browser at http://localhost:8501 🎉
  • Paste or upload your text, apply transformations, and see instant results!

🖥️ Command Line Interface (CLI)

ai-text-humanizer -t "Your text here" -l en -e default
ai-text-humanizer -t "متن فارسی شما" -l fa -e combo
ai-text-humanizer -f input.txt -l fa -e hazm

📚 As a Python Library

from ai_text_humanizer import humanize_text
result = humanize_text("Your text here", language="en", engine="default")
result_fa = humanize_text("متن فارسی شما", language="fa", engine="combo")

🛠️ Deployment

📌 Deploying on Streamlit Cloud

  1. Push your repo to GitHub.
  2. Ensure setup.sh is in the repo root.
  3. Link your GitHub repo to Streamlit Cloud & specify app.py as the entry point.
  4. Streamlit Cloud will handle the deployment automatically.

📂 Project Structure

AI-Text-Humanizer-App/
├── ai_text_humanizer/      # Python package (library & CLI)
│   ├── __init__.py
│   ├── core.py
│   └── cli.py
├── transformer/            # Text transformation logic (engines)
│   ├── fa_hazm.py
│   ├── fa_stanza.py
│   ├── fa_combo.py
│   └── app.py
├── main.py                 # Streamlit Web Interface
├── requirements.txt
├── setup.py
├── setup.sh
├── README.md
├── README.fa.md
└── .github/workflows/      # CI/CD & release

👨‍💻 Contributing

🙌 We welcome contributions! Follow these simple steps:

  1. Fork this repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m "Add new feature").
  4. Push to GitHub (git push origin feature-branch).
  5. Open a Pull Request and let’s improve the project together! 🚀

📄 License

📝 This project is licensed under the MIT License – feel free to use and modify it as needed.


⭐️ Support & Call-to-Action

If you find this project useful, please consider:

  • Starring the repository ⭐️
  • Forking the project to contribute enhancements
  • Following for updates on future improvements

Your engagement helps increase visibility and encourages further collaboration!


🚀 Planned & Possible Improvements

  • Add automatic language detection
  • Improve Persian paraphrasing (add more transformer models)
  • Add more engines (e.g. ParsBERT)
  • Improve UX and error messages
  • Add more unit tests
  • Add Dockerfile for easy deployment

📞 Contact & Support

For issues or feature requests, open an issue on GitHub.


🔥 Transform Your AI-Generated Text with Ease!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai-text-humanizer-1.0.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_text_humanizer-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file ai-text-humanizer-1.0.0.tar.gz.

File metadata

  • Download URL: ai-text-humanizer-1.0.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for ai-text-humanizer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a7ea3c204ea90413ef094eda749fbdef0902b22f1bd0b1732ba86d4216293615
MD5 becb37927deefcc0cf091c343f751c40
BLAKE2b-256 8803b04ad93c47de3559dc21c8fdb5f0f87d3d477906bd28bbacb95c01b7c502

See more details on using hashes here.

File details

Details for the file ai_text_humanizer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_text_humanizer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cff66d19c115cc8004f3b147ec485440c20b619837d22e633c8ff5de1b843eed
MD5 b57bb5198bb9123818ca4a872249b82a
BLAKE2b-256 914ac1fa62b475f8b844f4b0324323b24efc88056051790e8456a6a60a971afb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page