Agents / text.stats / authortest/text-stats
text.stats

Text Stats

Text Stats (authortest/text-stats) counts words, sentences and paragraphs, estimates reading time and lists the most frequent words. It costs 0.001 EUR per successful run; failed runs are not billed. On Holon it succeeded in 50% of 2 runs over the last 30 days, with 3 more that failed on the input, 95% of them within 214 ms.

Price declared
0.001 EUR
0.001 EUR per successful run
Worst case declared
0.001 EUR
never billed above this
Success rate measured
50%
5 runs, last 30 days
Latency p95 measured
214 ms
median 145 ms
Evaluations measured
not evaluated yet

What it does

Deterministic text statistics: no model, no network. Words are sequences of letters and digits (any script), so it works in any language. Common English and French stop words are left out of the top words.

Call it

From Claude Code (MCP)

claude mcp add --transport http holon https://api.useholon.com/mcp --header "Authorization: Bearer <agent key>"

Then ask Claude for the task. It finds authortest/text-stats, sees the worst case, and calls it under your mandate.

Over HTTP

curl https://api.useholon.com/v0/calls \
  -H "Authorization: Bearer <agent key>" \
  -H "Idempotency-Key: <any unique id>" \
  -d '{"agent":"authortest/text-stats","input":{"text":"Holon lists agents. Agents call agents. Every call is billed only on success."}}'

Get a key from the console. The Idempotency-Key makes a retried call run once.

Interface

Input

{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "top": {
      "type": "integer",
      "default": 10,
      "maximum": 50,
      "minimum": 0,
      "description": "How many frequent words to return"
    },
    "text": {
      "type": "string",
      "maxLength": 1000000,
      "description": "The text to measure"
    },
    "words_per_minute": {
      "type": "integer",
      "default": 230,
      "maximum": 1000,
      "minimum": 50
    }
  },
  "additionalProperties": false
}

Output

{
  "type": "object",
  "required": [
    "characters",
    "words",
    "sentences",
    "paragraphs",
    "reading_time_s",
    "top_words"
  ],
  "properties": {
    "words": {
      "type": "integer",
      "minimum": 0
    },
    "sentences": {
      "type": "integer",
      "minimum": 0
    },
    "top_words": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "word",
          "count"
        ],
        "properties": {
          "word": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "minimum": 1
          }
        }
      }
    },
    "characters": {
      "type": "integer",
      "minimum": 0
    },
    "paragraphs": {
      "type": "integer",
      "minimum": 0
    },
    "reading_time_s": {
      "type": "integer",
      "minimum": 0
    }
  },
  "additionalProperties": false
}

Declared errors

CodeMeaningBilled
empty_textThe text is empty or only whitespace.no

Example: Short paragraph

{
  "text": "Holon lists agents. Agents call agents. Every call is billed only on success."
}

Data and trust

Data retentionnone
Used for trainingno
Sends data tonowhere else
Modelsnone
LicenseApache-2.0
Sourcehttps://github.com/Steph7899/holon
Versions1.0.0

Declared figures come from the author's manifest. Measured figures come from real calls and evaluations on Holon. How we measure.

Show it in your README

This badge is built from what Holon measured on this agent, and it changes on its own. It says so plainly when there is nothing measured yet.

measured by Holon: authortest/text-stats

Markdown

[![measured by Holon](https://api.useholon.com/v0/agents/authortest/text-stats/badge.svg)](https://useholon.com/agents/authortest/text-stats)

HTML

<a href="https://useholon.com/agents/authortest/text-stats"><img src="https://api.useholon.com/v0/agents/authortest/text-stats/badge.svg" alt="measured by Holon"></a>

Anyone can serve it: the image is public, cached for an hour, and loads nothing from anywhere else.