Skip to main content

Analyze textual data and extract useful metrics such as word count, character count, average word length, and most common words

Project description

TextMetrics

TextMetrics is a Python package for basic text analysis and statistics. It provides simple yet efficient functions to analyze textual data and extract useful metrics such as word count, character count, average word length, and most common words.

Features

Word Count: Count the number of words in a text. Character Count: Count the number of characters in a text. Average Word Length: Calculate the average length of words in a text. Most Common Words: Find the most common words in a text.

Installation You can install Basictextmetrics using pip: pip install BasicTextMetrics

Usage Here's a quick example demonstrating the usage of BasicTextMetrics:

python Copy code from basictextmetrics import core

text = "This is a sample text for demonstrating the BasicTextMetrics package." print("Word count:", core.word_count(text)) print("Character count:", core.char_count(text)) print("Average word length:", core.avg_word_length(text)) print("Most common words:", core.most_common_words(text))

Contributing Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request on the GitHub repository.

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

This README provides a brief overview of the BasicTextMetrics package, its features, installation instructions, usage examples, guidelines for contributing, and information about the license. Feel free to customize it further based on your preferences and specific details of the package.

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

BasicTextMetrics-0.2.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

BasicTextMetrics-0.2.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file BasicTextMetrics-0.2.1.tar.gz.

File metadata

  • Download URL: BasicTextMetrics-0.2.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for BasicTextMetrics-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b5848712a2c1b3a463fde319c6d2fef481589273791c2d2b924dd9ce2fb5b434
MD5 b65be232aba08e1083e60d99de212f4d
BLAKE2b-256 ce498f36455cbbc00999a7bca5890db7c3fed60cd7b7c044e9ccded1fa35f87c

See more details on using hashes here.

File details

Details for the file BasicTextMetrics-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for BasicTextMetrics-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f7312be84b63783394d7235f5e5fa460e314c561afa5538eb37b3e4b7d9a3f
MD5 53a8edc118477f96b930d080ff4e8201
BLAKE2b-256 71697793469e12660b5201a9a2becef54892176cbecb3bfc235c52faf1ecdc96

See more details on using hashes here.

Supported by

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