Skip to content

PerryLink/Text-Humanizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Text Humanizer ๐Ÿค–โžก๏ธ๐Ÿ‘ค

Stop sounding like a bot. Instantly check your text's "Humanity Score".

Python Version License Code style: black

English | ไธญๆ–‡


English

Features

  • ๐Ÿ“Š Instant Readability Score - Get a 0-100 score showing how "human" your text sounds
  • ๐ŸŽจ Beautiful Terminal UI - Color-coded gauge from ๐Ÿ”ด Robot to ๐ŸŸข Human
  • ๐Ÿ“ Multiple Formats - Supports Markdown (.md) and plain text (.txt) files
  • ๐Ÿšจ AI Word Detection - Highlights common AI-generated words like "delve", "testament", "tapestry"
  • โšก Fast & Lightweight - No API calls, runs completely offline

Quick Start

Installation

pip install text-humanizer

Or install from source:

git clone https://github.com/PerryLink/text-humanizer.git
cd text-humanizer
poetry install

Usage

Check a file:

check-human ./draft.md

Pipe from clipboard (macOS):

pbpaste | check-human -

Pipe from clipboard (Windows):

powershell Get-Clipboard | check-human -

How It Works

The tool uses proven readability algorithms:

  1. Flesch Reading Ease Score - Higher scores = easier to read

    • 0-30: Very difficult (Academic/Robot)
    • 30-60: Difficult (Standard)
    • 60-100: Easy (Conversational/Human)
  2. Average Sentence Length - Shorter sentences = more natural

    • Penalty applied if average > 25 words
  3. AI Word Detection - Flags common AI-generated words that make text sound robotic

Project Structure

text-humanizer/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ text_humanizer/
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ”œโ”€โ”€ __main__.py
โ”‚       โ”œโ”€โ”€ analyzer.py      # Core analysis logic
โ”‚       โ”œโ”€โ”€ cleaner.py       # Text preprocessing
โ”‚       โ”œโ”€โ”€ cli.py           # Command-line interface
โ”‚       โ””โ”€โ”€ ui.py            # Terminal UI rendering
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ test_analyzer.py
โ”‚   โ””โ”€โ”€ test_cleaner.py
โ”œโ”€โ”€ examples/
โ”‚   โ”œโ”€โ”€ sample_human.txt
โ”‚   โ”œโ”€โ”€ sample_robot.txt
โ”‚   โ””โ”€โ”€ sample_markdown.md
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ CONTRIBUTING.md

Tech Stack

  • Python 3.8+ - Core language
  • textstat - Readability metrics calculation
  • rich - Beautiful terminal output
  • typer - CLI framework
  • pytest - Testing framework
  • black - Code formatting

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Copyright 2026 Chance Dean (novelnexusai@outlook.com)

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.


ไธญๆ–‡

ๅŠŸ่ƒฝ็‰นๆ€ง

  • ๐Ÿ“Š ๅณๆ—ถๅฏ่ฏปๆ€ง่ฏ„ๅˆ† - ่Žทๅพ— 0-100 ๅˆ†็š„"ไบบๆ€งๅŒ–"่ฏ„ๅˆ†
  • ๐ŸŽจ ็ฒพ็พŽ็ปˆ็ซฏ็•Œ้ข - ไปŽ ๐Ÿ”ด ๆœบๅ™จไบบๅˆฐ ๐ŸŸข ไบบ็ฑป็š„ๅฝฉ่‰ฒ่ฏ„ๅˆ†ๆก
  • ๐Ÿ“ ๅคšๆ ผๅผๆ”ฏๆŒ - ๆ”ฏๆŒ Markdown (.md) ๅ’Œ็บฏๆ–‡ๆœฌ (.txt) ๆ–‡ไปถ
  • ๐Ÿšจ AI ่ฏๆฑ‡ๆฃ€ๆต‹ - ้ซ˜ไบฎๆ˜พ็คบๅธธ่ง็š„ AI ็”Ÿๆˆ่ฏๆฑ‡,ๅฆ‚ "delve"ใ€"testament"ใ€"tapestry"
  • โšก ๅฟซ้€Ÿ่ฝป้‡ - ๆ— ้œ€ API ่ฐƒ็”จ,ๅฎŒๅ…จ็ฆป็บฟ่ฟ่กŒ

ๅฟซ้€Ÿๅผ€ๅง‹

ๅฎ‰่ฃ…

pip install text-humanizer

ๆˆ–ไปŽๆบ็ ๅฎ‰่ฃ…:

git clone https://github.com/PerryLink/text-humanizer.git
cd text-humanizer
poetry install

ไฝฟ็”จๆ–นๆณ•

ๆฃ€ๆŸฅๆ–‡ไปถ:

check-human ./draft.md

ไปŽๅ‰ช่ดดๆฟ่ฏปๅ–(macOS):

pbpaste | check-human -

ไปŽๅ‰ช่ดดๆฟ่ฏปๅ–(Windows):

powershell Get-Clipboard | check-human -

ๅทฅไฝœๅŽŸ็†

ๆœฌๅทฅๅ…ทไฝฟ็”จ็ป่ฟ‡้ชŒ่ฏ็š„ๅฏ่ฏปๆ€ง็ฎ—ๆณ•:

  1. Flesch ้˜…่ฏปๆ˜“ๅบฆ่ฏ„ๅˆ† - ๅˆ†ๆ•ฐ่ถŠ้ซ˜ = ่ถŠๆ˜“่ฏป

    • 0-30:้žๅธธๅ›ฐ้šพ(ๅญฆๆœฏ/ๆœบๅ™จไบบ)
    • 30-60:ๅ›ฐ้šพ(ๆ ‡ๅ‡†)
    • 60-100:็ฎ€ๅ•(ๅฏน่ฏ/ไบบ็ฑป)
  2. ๅนณๅ‡ๅฅๅญ้•ฟๅบฆ - ๅฅๅญ่ถŠ็Ÿญ = ่ถŠ่‡ช็„ถ

    • ๅนณๅ‡่ถ…่ฟ‡ 25 ไธชๅ•่ฏไผš่ขซๆ‰ฃๅˆ†
  3. AI ่ฏๆฑ‡ๆฃ€ๆต‹ - ๆ ‡่ฎฐไฝฟๆ–‡ๆœฌๅฌ่ตทๆฅๅƒๆœบๅ™จไบบ็š„ๅธธ่ง AI ็”Ÿๆˆ่ฏๆฑ‡

้กน็›ฎ็ป“ๆž„

text-humanizer/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ text_humanizer/
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ”œโ”€โ”€ __main__.py
โ”‚       โ”œโ”€โ”€ analyzer.py      # ๆ ธๅฟƒๅˆ†ๆž้€ป่พ‘
โ”‚       โ”œโ”€โ”€ cleaner.py       # ๆ–‡ๆœฌ้ข„ๅค„็†
โ”‚       โ”œโ”€โ”€ cli.py           # ๅ‘ฝไปค่กŒ็•Œ้ข
โ”‚       โ””โ”€โ”€ ui.py            # ็ปˆ็ซฏ UI ๆธฒๆŸ“
โ”œโ”€โ”€ tests/
โ”‚   โ”œโ”€โ”€ test_analyzer.py
โ”‚   โ””โ”€โ”€ test_cleaner.py
โ”œโ”€โ”€ examples/
โ”‚   โ”œโ”€โ”€ sample_human.txt
โ”‚   โ”œโ”€โ”€ sample_robot.txt
โ”‚   โ””โ”€โ”€ sample_markdown.md
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ CONTRIBUTING.md

ๆŠ€ๆœฏๆ ˆ

  • Python 3.8+ - ๆ ธๅฟƒ่ฏญ่จ€
  • textstat - ๅฏ่ฏปๆ€งๆŒ‡ๆ ‡่ฎก็ฎ—
  • rich - ็ฒพ็พŽ็ปˆ็ซฏ่พ“ๅ‡บ
  • typer - CLI ๆก†ๆžถ
  • pytest - ๆต‹่ฏ•ๆก†ๆžถ
  • black - ไปฃ็ ๆ ผๅผๅŒ–

่ฎธๅฏ่ฏ

ๆœฌ้กน็›ฎ้‡‡็”จ Apache License 2.0 ่ฎธๅฏ่ฏ - ่ฏฆ่ง LICENSE ๆ–‡ไปถใ€‚

็‰ˆๆƒๆ‰€ๆœ‰ 2026 Chance Dean (novelnexusai@outlook.com)

่ดก็Œฎ

ๆฌข่ฟŽ่ดก็Œฎ!่ฏฆๆƒ…่ฏทๅ‚้˜… CONTRIBUTING.mdใ€‚

About

Text Humanizer is a lightweight CLI tool that instantly analyzes text readability and detects AI-generated content patterns. In an era where AI-generated content floods the internet, this tool helps writers, content creators, and students ensure their text sounds natural and human.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages