Text edit alignment

text-edit-alignment · version 1.0.0 · Text · free, no key needed

Return a bounded optimal edit alignment with a documented deterministic tie-break order.

Use when you need to: produce optimal edit alignment · show minimum edit operations · align source tokens to target.

Decide before calling

Read the versioned contract and the supported scope below. Reuse text-edit-alignment@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-edit-alignment@1.0.0 for produce optimal edit alignment. 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:

{
  "source": "a",
  "target": "b"
}

Response:

{
  "result": {
    "distance": 1,
    "source_tokens": 1,
    "target_tokens": 1,
    "operations": [
      {
        "operation": "substitute",
        "source": "a",
        "target": "b"
      }
    ]
  }
}

How to call it

MCP

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

{
  "id": "text-edit-alignment",
  "version": "1.0.0",
  "input": {
    "source": "a",
    "target": "b"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/text-edit-alignment/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"source":"a","target":"b"}'

The machine-readable contract is at /v1/tools/text-edit-alignment/versions/1.0.0.

CLI

node cli.mjs run text-edit-alignment 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.