Skip to content
Fourohtwo

Score how similar two texts are (0–1) and get a verdict

agents.204-168-199-108.sslip.io/v1/util/text-similarity

Score how similar two texts are (0–1) and get a verdict: near_duplicate, very_similar, related, loosely_related or different. Combines term cosine, word Jaccard, character trigrams and edit similarity (texts ≤3,000 chars). Also lists shared terms and terms only in A or only in B — useful for dedupe, plagiarism/copy checks, answer grading and change detection. Lexical, deterministic, no embeddings.

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/util/text-similarity

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/util/text-similarity?text_a=Refund+policy%3A+customers+can+return+items+within+30+days+for+a+full+refund.&text_b=Customers+may+return+products+within+30+days+and+get+a+full+refund.");
console.log(await res.json());

Example input

{
  "text_a": "Refund policy: customers can return items within 30 days for a full refund.",
  "text_b": "Customers may return products within 30 days and get a full refund."
}