{"uid":"cap_RsgIeoWk_5y6dRQTSdjs5","slug":"agent402-tools-text-similarity-1a49fedf","name":"agent402.tools Text Similarity","description":"Compute Jaccard similarity, overlap coefficient, and Sorensen-Dice coefficient between two texts at the word level. Returns similarity scores (0-1) plus shared and unique word counts.","url":"https://agent402.tools/api/text-similarity","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string","description":"First text"},"b":{"type":"string","description":"Second text"}}},"responseSchema":{"type":"json","example":{"shared":["the","brown","fox","over","lazy"],"jaccard":0.55,"overlap":0.75,"uniqueA":["quick","jumps","dog"],"uniqueB":["fast","leaps","cat"],"sorensen":0.71,"sharedCount":5,"totalUnique":11}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Wb_exo58RbPw4jlk1FXpE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes Jaccard similarity, overlap coefficient, and Sorensen-Dice coefficient between two texts at the word level, returning similarity scores and word overlap statistics.","exampleAgentPrompt":"Can you tell me how similar these two texts are — 'The quick brown fox jumps over the lazy dog' and 'The fast brown fox leaps over the sleepy dog' — and give me the Jaccard, overlap, and Dice similarity scores?","exampleUseCases":null,"resultDescription":"Returns three similarity scores (Jaccard, overlap coefficient, Sorensen-Dice), each ranging from 0 to 1, along with counts of shared words and words unique to each text.","failureModes":["Missing 'a' or 'b' field returns a 400 error","Empty strings may produce undefined or zero scores","Very long texts may increase latency","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need fast, word-level lexical similarity metrics between two texts without needing semantic or embedding-based similarity. Ideal for deduplication checks, near-duplicate detection, or simple content comparison tasks where vocabulary overlap is the primary signal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.630Z","isFirstParty":false}