Metadata-Version: 2.1
Name: wordlyzer2
Version: 0.2
Summary: A simple library for text analysis
Home-page: https://github.com/NuricoVicyyanto/wordlyzer.git
Download-URL: https://github.com/nuricovicyyanto/wordlyzer/archive/v_01.tar.gz
Author: Nurico Vicyyanto
Author-email: nuricovicyyanto@gmail.com
License: MIT
Project-URL: Documentation, https://packaging.python.org/tutorials/distributing-packages/
Project-URL: Funding, https://donate.pypi.org
Project-URL: Say Thanks!, http://saythanks.io/to/nuricovicyyanto
Project-URL: Source, https://github.com/nuricovicyyanto/wordlyzer
Project-URL: Tracker, https://github.com/nuricovicyyanto/wordlyzer/issues
Keywords: text,analysis,python,library
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: validators
Requires-Dist: beautifulsoup4

# Wordlyzer

Wordlyzer is a powerful Python library for text analysis, providing comprehensive insights into text metrics and properties.

## Installation

Install Wordlyzer using pip:

```bash
pip install wordlyzer==0.2
```

## Features

- Word count analysis
- Sentence count calculation
- Paragraph count detection
- Character count measurement
- Most common words identification
- Average word length computation
- Average sentence length calculation

## Quick Start

```python
# File: main.py
from wordlyzer import WordLyzer

# Example text for analysis
text = """Python is an amazing programming language. It's widely used for web development, data analysis, and AI.

This is a second paragraph."""

# Create analyzer object
analyzer = WordLyzer(text)

# Display analysis results
print("Word Count:", analyzer.word_count())
print("Sentence Count:", analyzer.sentence_count())
print("Paragraph Count:", analyzer.paragraph_count())
print("Character Count:", analyzer.character_count())
print("Most Common Words:", analyzer.most_common_words())
print("Average Word Length:", analyzer.average_word_length())
print("Average Sentence Length:", analyzer.average_sentence_length())
```

## Methods

### `word_count()`
Returns the total number of words in the text.

### `sentence_count()`
Returns the number of sentences in the text.

### `paragraph_count()`
Returns the number of paragraphs in the text.

### `character_count()`
Returns the total number of characters in the text.

### `most_common_words(n=5)`
Returns the `n` most frequently occurring words in the text.
- Default is top 5 words
- Optional parameter to specify number of words

### `average_word_length()`
Calculates the average length of words in the text.

### `average_sentence_length()`
Calculates the average number of words per sentence.

## Requirements

- Python 3.7+
- No external dependencies

## License

MIT License

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## Author

[Nurico Vicyyanto]

## Support

For issues or questions, please open an issue on our GitHub repository.
