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.dev12.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.0.dev12.tar.gz
Algorithm Hash digest
SHA256 222a6c549c728e34d9edbdff2505fc16accbb3eb806702aea1a268294e50e9e2
MD5 66e0ba19c9da98f0712ae2f40f9e0831
BLAKE2b-256 d3905e34f310517a9c2a86d8bdb442d71791eed2c7b02f545cabb757ceb92e93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.0.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 9e4af80aafa1390b61831fcecdbbcd53df3081f9e007e0d2bb6132eba9db7872
MD5 116ee3b09bd9c6763ca4bfab28c939d5
BLAKE2b-256 d95dd03545ebc4ef3861530006e2b5a33451710ba3d4dc6ab4064dbea01c40db

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