Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Processing Utility

A simple Python utility for common text processing tasks.

Features

  • Word count analysis
  • Text statistics (characters, lines, paragraphs)
  • Case conversion utilities
  • Basic text cleaning functions

Usage

from text_utils import TextProcessor

processor = TextProcessor()
text = "Hello, World! This is a sample text."

# Get word count
word_count = processor.count_words(text)
print(f"Word count: {word_count}")

# Get text statistics
stats = processor.get_stats(text)
print(f"Statistics: {stats}")

# Clean text
clean_text = processor.clean_text(text)
print(f"Clean text: {clean_text}")

Installation

pip install -r requirements.txt

Running Tests

python -m pytest tests/

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages