← Back to directory

Cosine similarity of the word-count vectors of two texts, with shared terms and ...

https://text-similarity.x402tookit.com/cosine-tokens

Overview

Cosine similarity of the word-count vectors of two texts, with shared terms and vector norms.

Protocol x402
Price $0.02
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Text Similarity
Source bazaar
Indexed 2026-10-20 21:22:34

Health

Status healthy
Latency (p50) 505ms
Uptime (30d) 81.3%
Reliability Score 80.6/100
Last Checked 2026-10-28 06:44:25
Last Healthy 2026-10-28 06:44:25
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "a": "the cat sat", "b": "the cat sat on the mat" }, "type": "http" }

Output Schema

{ "example": { "asOf": "2026-10-12T00:50:06.339Z", "cosine": 0.8165, "degraded": false, "disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.", "distinctA": 3, "distinctB": 5, "dot": 4, "ignoreCase": true, "normA": 1.7321, "normB": 2.8284, "notChecked": [ "no stop-word removal, stemming or IDF weighting: raw word counts only", "word order and meaning", "…1 more" ], "reasons": [ "Cosine = dot product / (norm A * norm B) of word-count vectors. SIMILAR means 0.7 or more, a convenience band. Identical word counts in any order give 1." ], "sharedTerms": 3, "source": "computed locally (term-frequency cosine)", "summary": "Cosine 0.8165 over 3 shared distinct words (3 and 5 distinct).", "tokensA": 3, "tokensB": 6, "verdict": "SIMILAR" }, "type": "json" }