Text near duplicates find

text-near-duplicates-find · version 1.0.0 · Text · free, no key needed

Find every pair of texts whose exact shingle Jaccard similarity reaches a threshold, in a fixed order.

Use when you need to: find near duplicate agent outputs · which of these answers are almost the same · detect near-duplicate documents with exact jaccard.

Decide before calling

Read the versioned contract and the supported scope below. Reuse text-near-duplicates-find@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use text-near-duplicates-find@1.0.0 for find near duplicate agent outputs. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "documents": [
    "a d",
    "b d e",
    "a c d"
  ],
  "shingle_unit": "word",
  "shingle_size": 1,
  "threshold": 0.25
}

Response:

{
  "result": {
    "pairs": [
      {
        "a": 0,
        "b": 2,
        "resemblance": 0.6666666666666666,
        "intersection": 2,
        "union": 3
      },
      {
        "a": 0,
        "b": 1,
        "resemblance": 0.25,
        "intersection": 1,
        "union": 4
      }
    ],
    "pair_count": 2,
    "pairs_truncated": false,
    "pairs_compared": 3,
    "shingle_counts": [
      2,
      3,
      3
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "text-near-duplicates-find",
  "version": "1.0.0",
  "input": {
    "documents": [
      "a d",
      "b d e",
      "a c d"
    ],
    "shingle_unit": "word",
    "shingle_size": 1,
    "threshold": 0.25
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-near-duplicates-find/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"documents":["a d","b d e","a c d"],"shingle_unit":"word","shingle_size":1,"threshold":0.25}'

The machine-readable contract is at /v1/tools/text-near-duplicates-find/versions/1.0.0.

CLI

node cli.mjs run text-near-duplicates-find 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.