Skip to main content

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

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tool_sentencecomplexity


Swarmauri Tool Sentencecomplexity

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.9.0.dev4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.9.0.dev4.tar.gz
Algorithm Hash digest
SHA256 b109a4d891f8a5806f14f7295e68d3a4563f0d002402e2865d48eaad1e6a3ea4
MD5 25e495b95db98ce9011af20b955ddf21
BLAKE2b-256 acc97c4e53fd7e98780180411aa10b0a03769527ba1eaea353b96149110a55f7

See more details on using hashes here.

File details

Details for the file swarmauri_tool_sentencecomplexity-0.9.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.9.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 f82a2d90ecba4f33004a0d1f0c50f20ee0e2a509b13a96d5177a076f39c83ad0
MD5 2c8a0fc3128965d0c6f9a505a01460b4
BLAKE2b-256 77b8e7f25597617ac8b6d5b4c0aa4aa1012678fe06dab0daecc6e5bb972b35ec

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