A Python package for text analysis
Project description
Python Text Stats
A simple Python module to analyze text and provide various statistics such as word count, sentence count, average word length, estimated reading time, character count, syllable count, and readability scores.
Features
- Count words
- Count sentences
- Average word length
- Estimated reading time (default 200 WPM)
- Character count (excluding spaces)
- Estimate syllable count
- Calculate Flesch Reading Ease score
- Calculate Flesch-Kincaid Grade Level
Installation
Simply download the pip install pythontextstats file into your project.
Usage
import pythontextstats as pts
text = "This is a simple example sentence. It has multiple words and sentences."
print("Words:", pts.word_count(text))
print("Sentences:", pts.sentence_count(text))
print("Average Word Length:", pts.average_word_length(text))
print("Reading Time (minutes):", pts.reading_time(text))
print("Character Count:", pts.character_count(text))
print("Syllable Count:", pts.syllable_count(text))
print("Flesch Reading Ease:", pts.flesch_reading_ease(text))
print("Flesch-Kincaid Grade Level:", pts.flesch_kincaid_grade(text))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythontextstats-0.1.3.tar.gz.
File metadata
- Download URL: pythontextstats-0.1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9072fbcadba4284cfa22189535c9a51222aba9c70f610b90a8198c609d0d77b
|
|
| MD5 |
13418959f064101ce6988f2cf1764c3c
|
|
| BLAKE2b-256 |
212cd458f50eee4402cc7d53062a0a41cdf20d55c017cff915ac3c223435e585
|
File details
Details for the file pythontextstats-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pythontextstats-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649dd442ef72a30877a6ce49bbd42f4e0dc62a7f8788ed1540da27a1c8ad2828
|
|
| MD5 |
1b83b4a3b7e75e3c0407e95dc22c205c
|
|
| BLAKE2b-256 |
ba00bb4a8df547f16cb3cac15a9ff5d77776159f0435ab23250010b0d9a1e714
|