{"uid":"cap_BgZjgQeCtp1xjo8MCQHy4","slug":"saylor-innovations-text-similarity-analyzer-8138100b","name":"Saylor Innovations Text Similarity Analyzer","description":"Compare two texts with cosine, Jaccard, Dice bigram and edit-distance similarity, an overall score, a duplicate verdict and the shared terms","url":"https://saylorinnovations.com/api/text/similarity?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["a","b"],"properties":{"a":{"type":"string","description":"First text (up to 2500 characters)"},"b":{"type":"string","description":"Second text (up to 2500 characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["overall_similarity","verdict","cosine_similarity"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"source":{"type":"string","description":"Data source the values come from"},"verdict":{"type":"string","description":"Overall assessment derived from the listed reasons"},"exact_match":{"type":["boolean","null"],"description":"Exact match"},"shared_terms":{"type":["array","null"],"description":"Shared terms"},"shared_words":{"type":"number","description":"Shared words"},"text_a_words":{"type":"number","description":"Text a words"},"text_b_words":{"type":"number","description":"Text b words"},"edit_distance":{"type":"number","description":"Edit distance"},"edit_similarity":{"type":["number","null"],"description":"Edit similarity"},"cosine_similarity":{"type":"number","description":"Cosine similarity"},"jaccard_similarity":{"type":"number","description":"Jaccard similarity"},"overall_similarity":{"type":"number","description":"Overall similarity"},"dice_bigram_similarity":{"type":"number","description":"Dice bigram similarity"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dB6_oMW-ghJyNc7Ukoif_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two texts using cosine, Jaccard, Dice bigram, and edit-distance similarity metrics, returning an overall score, duplicate verdict, and shared terms","exampleAgentPrompt":"Can you compare these two paragraphs and tell me how similar they are — give me cosine, Jaccard, Dice bigram, and edit-distance scores along with an overall verdict on whether they're duplicates? Text A: 'The quick brown fox jumps over the lazy dog.' Text B: 'A fast brown fox leaps over a sleepy dog.'","exampleUseCases":[{"title":"Plagiarism check on student essays","prompt":"I have two student essay submissions and I want to know if they're too similar — can you run a full similarity check on them and tell me the overall score and whether they look like duplicates? Essay 1: 'Climate change is the defining challenge of our era, driven by rising greenhouse gas emissions from fossil fuels.' Essay 2: 'The defining challenge of our time is climate change, caused by growing greenhouse gas emissions from burning fossil fuels.'"},{"title":"Deduplication of product descriptions","prompt":"Check whether these two product descriptions are essentially the same thing so I can decide whether to merge them. Description A: 'Lightweight running shoes with breathable mesh upper and cushioned sole, ideal for road running.' Description B: 'Breathable mesh running shoes with a cushioned sole designed for road use — lightweight and comfortable.'"},{"title":"Content similarity audit for SEO","prompt":"I need to know how similar these two blog post intros are from an SEO duplication standpoint — give me the cosine and Jaccard scores and a duplicate verdict. Text 1: 'Starting a podcast in 2024 is easier than ever with affordable recording equipment and free hosting platforms.' Text 2: 'In 2024, launching a podcast has never been simpler thanks to cheap recording gear and free hosting options.'"}],"resultDescription":"Returns a JSON object with cosine similarity, Jaccard similarity, Dice bigram similarity, edit distance, edit similarity, an aggregated overall similarity score (0–1), a plain-English duplicate verdict, a list of shared terms, and word counts for both inputs — plus optional notes and source attribution.","failureModes":["Missing required query parameters 'a' or 'b' returns an error","Text inputs exceeding 2500 characters may be rejected or truncated","Very short inputs (single words) may produce unreliable similarity scores","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need multi-metric text similarity in a single call — it combines cosine, Jaccard, Dice bigram, and edit-distance into one aggregated score with a duplicate verdict, saving you from calling separate NLP tools. Prefer it over standalone edit-distance or cosine tools when you want a holistic comparison with shared-term extraction for explainability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:24.458Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-text-similarity-analyzer-8138100b"}