Skip to main content

This repository includes an example of a First Class Swarmauri Example.

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


Sentence Complexity Tool

A tool for evaluating sentence complexity based on average sentence length and the number of clauses.

Installation

pip install swarmauri_tool_sentencecomplexity

Usage

The SentenceComplexityTool analyzes text and returns metrics about sentence complexity.

from swarmauri.tools.sentencecomplexity import SentenceComplexityTool

# Initialize the tool
tool = SentenceComplexityTool()

# Analyze text
text = "This is a simple sentence. This is another sentence, with a clause."
result = tool(text)

print(result)
# Output: {
#     'average_sentence_length': 7.5,
#     'average_clauses_per_sentence': 1.5
# }

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

Project details


Release history Release notifications | RSS feed

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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_tool_sentencecomplexity-0.7.0.dev10.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.0.dev10.tar.gz
Algorithm Hash digest
SHA256 b29fa97082258b0ca5a0cac09dbcef2d7f7348a79b0a5a14517f6f92509a31a8
MD5 e10187c8e004570dc98ca1cabbe9c8f4
BLAKE2b-256 eeb6850554dcc23da6c08112a8f566cc1fe48dbbe4bce5525b9a3d17e65008ae

See more details on using hashes here.

File details

Details for the file swarmauri_tool_sentencecomplexity-0.7.0.dev10-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.0.dev10-py3-none-any.whl
Algorithm Hash digest
SHA256 918e4b7862143342798e788fe475a5fc715acd2ab14f49e1f2d39d03d8ea7ce0
MD5 92c0a6e96b3190346fca363867265748
BLAKE2b-256 fd753cbacfbcc3013ad16659b2630a51eef403ea48aeca0ad8a51a031fd9c4b1

See more details on using hashes here.

Supported by

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