DeAI Research
Tool · takes text, gives numbers

Count words

from the catalog, publicfrom this node's catalog0 runs here

What it does
Counts the words.
Give it
text
You get
a number
Example
eab hufye
eab  dqvm 0
5
Gives numbers.Free uses today 100 of 100
How it was tested
  1. Right shape, and enough test casesstructural
  2. Clean: no one's data insidelint
  3. Origin noted and respectedprovenance
  4. Agrees with an independent referencereference
  5. Consistent: known relations holdmr
  6. Sensitive: tells broken copies apartmutants
  7. No hidden messagessubliminal
  8. Fast enough: under a minutebudget

A catalog tool: listed by construction. A tool built for a request carries the report of its own admission here.

Under the hood
def words(s):
    out = []
    cur = ''
    for ch in s + ' ':
        if ch == ' ' or ch == '\t' or ch == '\n' or ch == '\r':
            if cur != '':
                out = out + [cur]
            cur = ''
        else:
            cur = cur + ch
    return out
def solve(s):
    return len(words(s))

8 test cases ship with it; the first three:

inout
eab hufye
eab  dqvm 0
5
wxz piuyaz
wxz  ypsn 1
5
vgdzcx pyq
vgdzcx  xrval 2
5
id
count_words
artifact
6d8f6f2624d3…66d5b
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/count_words
POST https://research.zaiba.cloud/api/v1/programs/count_words/run
  {"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/count_words/code
# 200 · text/plain · the tool as one Python file, written by the library's authors