{"uid":"cap_xxq4CxCvGRvAxCiwSVLbt","slug":"jaccard-similarity-character-bigrams-492e8b06","name":"Jaccard Similarity (Character Bigrams)","description":"Jaccard similarity index in [0,1] — the size of the intersection over the union of the two strings' character-bigram sets.","url":"https://similarity.openverbs.com/v1/jaccard","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","maxLength":20000,"description":"First string."},"b":{"type":"string","maxLength":20000,"description":"Second string."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Qv-A-9i47657FonMI3vjA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the Jaccard similarity index between two strings based on the overlap of their character-bigram sets, returning a score between 0 and 1.","exampleAgentPrompt":"What's the Jaccard character-bigram similarity between 'night' and 'knight'? I need the score between 0 and 1.","exampleUseCases":[{"title":"Deduplicating product catalog entries","prompt":"Can you compare 'Samsung Galaxy S22 Ultra' and 'Samsung S22 Ultra Phone' using Jaccard bigram similarity and tell me how similar they are on a 0-to-1 scale?"},{"title":"Fuzzy name matching in a database","prompt":"I need to check how similar the names 'Jonathan Smith' and 'Jonathon Smyth' are — can you run a Jaccard character similarity score on them?"},{"title":"Detecting near-duplicate user reviews","prompt":"These two reviews look almost the same — 'Great product, fast shipping!' and 'Great product fast shipping' — what's their Jaccard bigram similarity score?"}],"resultDescription":"A JSON response containing the Jaccard similarity score as a float in the range [0, 1], where 0 means no shared character bigrams and 1 means identical bigram sets. The score is computed as the size of the character-bigram intersection divided by the size of the union of the two input strings' bigram sets.","failureModes":["Missing required fields 'a' or 'b' returns a validation error","Strings exceeding 20,000 characters are rejected","Empty strings may produce undefined or 0 similarity due to empty bigram sets","Non-string input types for 'a' or 'b' return schema validation errors","Network or payment authorization failure returns 402 or 5xx status"],"whenToPreferThis":"Choose the Jaccard bigram endpoint when you need a set-based similarity metric that is insensitive to word order and handles minor character-level differences well. It is ideal for near-duplicate detection, deduplication, and fuzzy entity matching where you care about shared character n-gram overlap rather than edit distance. Prefer this over Levenshtein when string length normalization matters less and over Dice when you want strict intersection-over-union semantics. It works well for short to medium-length strings like names, titles, and product labels.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:22.451Z","isFirstParty":false}