{"slug":"saylorinnovations-com-api-text-similarity-458a04","title":"Compare two texts with cosine, Jaccard, Dice bigram and edit-distance similarity","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/text/similarity","category":"other","description":"Compare two texts with cosine, Jaccard, Dice bigram and edit-distance similarity, an overall score, a duplicate verdict and the shared terms","price_listed":0.01,"price_asked":null,"state":"no_terms","state_label":"Answers HTTP 404 without x402 payment terms","checks_7d":1,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"a":"The quick brown fox jumps over the lazy dog","b":"A quick brown dog jumps over the lazy fox"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"properties":{"a":{"description":"First text (up to 2500 characters)","type":"string"},"b":{"description":"Second text (up to 2500 characters)","type":"string"}},"required":["a","b"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"cosine_similarity":{"description":"Cosine similarity","type":"number"},"dice_bigram_similarity":{"description":"Dice bigram similarity","type":"number"},"edit_distance":{"description":"Edit distance","type":"number"},"edit_similarity":{"description":"Edit similarity","type":["number","null"]},"exact_match":{"description":"Exact match","type":["boolean","null"]},"jaccard_similarity":{"description":"Jaccard similarity","type":"number"},"note":{"description":"Caveat or context for reading the result","type":"string"},"overall_similarity":{"description":"Overall similarity","type":"number"},"shared_terms":{"description":"Shared terms","type":["array","null"]},"shared_words":{"description":"Shared words","type":"number"},"source":{"description":"Data source the values come from","type":"string"},"text_a_words":{"description":"Text a words","type":"number"},"text_b_words":{"description":"Text b words","type":"number"},"verdict":{"description":"Overall assessment derived from the listed reasons","type":"string"}},"required":["overall_similarity","verdict","cosine_similarity"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":404,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":284,"error":null}],"description_full":"Compare two texts with cosine, Jaccard, Dice bigram and edit-distance similarity, an overall score, a duplicate verdict and the shared terms","last_updated":"2026-10-17T10:22:12.127Z","schemes":["exact"]}