Word Counter Pack

Trustedv1.0.0MITGold Verified95

by AgentNode · published 20 days ago · toolpack

Count words, characters, and sentences in any text.

A simple text analysis tool. Zero dependencies.

generic

Quick Start

bash
agentnode install word-counter-pack

Usage

From package
python
from word_counter_pack.tool import run

result = run(
    text="Artificial intelligence is transforming how developers build software. "
         "Modern AI agents can search the web, write code, manage files, and "
         "interact with APIs — all autonomously. The key challenge is making "
         "these agents reliable enough for production use. That means robust "
         "error handling, clear capability boundaries, and predictable behavior "
         "under edge cases."
)

print(f"Words: {result['word_count']}")
print(f"Characters: {result['character_count']}")
print(f"Characters (no spaces): {result['character_count_no_spaces']}")
print(f"Sentences: {result['sentence_count']}")
print(f"Paragraphs: {result['paragraph_count']}")
print(f"Average words per sentence: {result['avg_words_per_sentence']:.1f}")
print(f"Estimated reading time: {result['reading_time_minutes']:.1f} min")

Verification

high confidence95/100★ Gold Verified
smokeReturned valid result
+25/25
testsPublisher-provided tests passed
+15/15
importAll tools imported successfully
+15/15
installInstalled in 11.2s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed. publisher tests passed.

install11.2s
import687ms
smoke117ms
tests4.9s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseract

Last verified 16d ago· Runner v2.0.0

Use this when you need to...

  • Count words in a blog draft to meet a target word count
  • Analyze sentence length distribution for readability optimization
  • Calculate reading time estimates for articles and documentation
  • Verify character limits for social media posts or meta descriptions
  • Compare word counts across multiple document versions

README

Word Counter Pack

Count words, characters, and sentences in any text. A simple, zero-dependency text analysis tool that provides word counts, character counts, sentence counts, reading time estimates, and readability metrics.

Quick Start

agentnode install word-counter-pack
from word_counter_pack.tool import run

result = run(text="Hello world, this is a test.")
print(f"{result['word_count']} words, {result['character_count']} characters")

Usage

Basic Word Count

result = run(text="Your text goes here.")
print(f"Words: {result['word_count']}")
print(f"Characters: {result['character_count']}")
print(f"Sentences: {result['sentence_count']}")

Reading Time Estimate

with open("article.txt") as f:
    text = f.read()

result = run(text=text)
print(f"Reading time: {result['reading_time_minutes']:.1f} minutes")
print(f"Avg words per sentence: {result['avg_words_per_sentence']:.1f}")

Character Limit Validation

tweet = "Excited to announce our new AI agent toolkit!"
result = run(text=tweet)
if result["character_count"] <= 280:
    print("Tweet is within character limit")

API Reference

ParameterTypeDescription
textstrThe text to analyze
Return FieldTypeDescription
word_countintTotal number of words
character_countintTotal characters including spaces
character_count_no_spacesintCharacters excluding spaces
sentence_countintNumber of sentences
paragraph_countintNumber of paragraphs
avg_words_per_sentencefloatAverage sentence length
reading_time_minutesfloatEstimated reading time (238 wpm)

Zero dependencies. Works entirely offline.

License

MIT

Version History

Capabilities

data_cleaningcount_wordstool

Count words, characters, and sentences in text

Permissions

This package declares the following access levels. Review before installing.

Networknone
Filesystemnone
Code Executionnone
Data Accessinput_only
User Approvalnever
bash
agentnode install word-counter-pack

Files (5)

License

MIT

Stats

Downloads5
Installs0
Versionv1.0.0
Published3/18/2026
Channelstable
Typetoolpack
Entrypointword_counter_pack.tool

Compatibility

Frameworks

generic

Runtime

python

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode