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

This version

0.7.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_tool_sentencecomplexity-0.7.0.tar.gz (6.7 kB view details)

Uploaded Source

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

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.0.tar.gz
Algorithm Hash digest
SHA256 cf7b808f2c9170fb459286d2946cc26114eb59c00cee287f6a38174117d8197c
MD5 12ebe0f283cb9689b4b65ee18ec58793
BLAKE2b-256 f134119404dedf62ed1df26bff945961156a6ca76d141ecfebb87852833ad720

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 854dd4a75bed16e7bff20e86c67a0538411cd2cc6d8ea54a2724283c0359b1ce
MD5 ecafbdd4f84c41e13db823b50c6b397c
BLAKE2b-256 7ba10da0cb3ce5a793278e3d2a037ca2ba71d141fdaca54d70bf44db30fc80cc

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