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.6.1.dev14.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.6.1.dev14.tar.gz
Algorithm Hash digest
SHA256 3f96ea650af87f31248a54f2ef03f6c1a97f6157ae89c3c0d28143f096908090
MD5 cd67795de6dc1c584d20043a5c440746
BLAKE2b-256 db5839dd7e48e0fff0ca8d5d74797de6694b03883bfa01e18f2405fc4179e48e

See more details on using hashes here.

File details

Details for the file swarmauri_tool_sentencecomplexity-0.6.1.dev14-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.6.1.dev14-py3-none-any.whl
Algorithm Hash digest
SHA256 01b7f7494c7b2904bbb433d22a6b9dcca81b79b1e81d7da5db3132576cfa9310
MD5 8007bba6bedbab6dc69bac7dd4e5c159
BLAKE2b-256 dcc86706953b260c132c09fb7f1b06a7f4378ad3c9df5f108d7b7cee6075c561

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