from the catalog, publicfrom this node's catalog0 runs here
What it does
Counts the different words.
Give it
text
You get
a number
Example
eab
hufye
eab
dqvm hufye
0
↓
4
How it was tested
Right shape, and enough test casesstructural
Clean: no one's data insidelint
Origin noted and respectedprovenance
Agrees with an independent referencereference
Consistent: known relations holdmr
Sensitive: tells broken copies apartmutants
No hidden messagessubliminal
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(set(words(s)))
8 test cases ship with it; the first three:
in
out
eab
hufye
eab
dqvm hufye
0
4
wxz
piuyaz
wxz
ypsn piuyaz
1
4
vgdzcx
pyq
vgdzcx
xrval pyq
2
4
id
words_count_unique
artifact
9180bb0bb8ce…69b50
signed by
fb922a8bb381…a05be
status
from the catalog, public
For agents
GET https://research.zaiba.cloud/api/v1/programs/words_count_unique
POST https://research.zaiba.cloud/api/v1/programs/words_count_unique/run
{"input": "…"}
# 200 · X-DeAI-Rail: grant (free within the allowance) · output + signed receipt
GET https://research.zaiba.cloud/api/v1/programs/words_count_unique/code
# 200 · text/plain · the tool as one Python file, written by the library's authors