{
  "slug": "text-compare",
  "mcpServerUrl": "https://plugins-worker.demos.42a.ai/text-compare/mcp",
  "interface": {
    "displayName": "Handy Text Compare",
    "shortDescription": "See exactly what changed",
    "longDescription": "Compare two versions of a text and see exactly what changed, word by word, line by line or character by character.\n\nPaste the original and the revised version of an essay, contract clause, cover letter, product description or code snippet. The card shows a redline with deletions struck through and insertions highlighted, how similar the two versions are, how many words were added, removed and changed, and a numbered list of every change (\"quick\" → \"fast\"). Switch between word, line and character comparison, and ignore case, whitespace or punctuation when they do not matter.\n\nThe comparison uses the Myers diff algorithm, the same minimal-edit method behind version control tools, so nothing is missed or invented. Download a standalone HTML redline report to share or print. Your texts are compared and not stored.",
    "category": "Productivity",
    "defaultPrompt": [
      "Compare these two versions of my paragraph and show what changed: [original] / [revised]",
      "What changed between these two contract clauses? [paste both]",
      "Diff these two lists line by line: [list 1] / [list 2]"
    ],
    "capabilities": [
      "Word, line or character comparison with a redline view",
      "Similarity score and counts of words added, removed and changed",
      "Numbered list of every change",
      "Ignore case, whitespace or punctuation",
      "Downloadable HTML redline report"
    ],
    "logo": "https://plugins-worker.demos.42a.ai/text-compare/icon.svg",
    "websiteURL": "https://plugins-worker.demos.42a.ai/text-compare/",
    "supportURL": "https://plugins-worker.demos.42a.ai/support",
    "privacyPolicyURL": "https://plugins-worker.demos.42a.ai/privacy",
    "termsOfServiceURL": "https://plugins-worker.demos.42a.ai/terms",
    "developerName": "42a"
  },
  "keywords": [
    "compare two texts",
    "text compare",
    "diff checker",
    "what changed between these two versions",
    "compare documents",
    "find differences between two texts",
    "redline"
  ],
  "tools": [
    {
      "name": "compare_texts",
      "title": "Compare two texts",
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    }
  ],
  "dataSources": [],
  "review": {
    "positiveTestCases": [
      {
        "description": "A sentence with swaps, an insertion and punctuation",
        "prompt": "What changed? Original: \"The quick brown fox jumps over the lazy dog.\" Revised: \"The fast brown fox leaps over the very lazy dog!\"",
        "tools_triggered": [
          "compare_texts"
        ],
        "expected_behavior": "73.68% similar, 4 changed regions: 2 words changed (quick → fast, jumps → leaps), 1 added (very), 0 removed, and \".\" → \"!\"."
      },
      {
        "description": "A contract clause redline",
        "prompt": "Redline these: \"The Tenant shall pay rent of $1,200 on the first day of each month.\" vs \"The Tenant shall pay rent of $1,250 on or before the fifth day of each month.\"",
        "tools_triggered": [
          "compare_texts"
        ],
        "expected_behavior": "80% similar, 3 changes: \"1,200\" → \"1,250\", added \"or before\", \"first\" → \"fifth\"; redline report download."
      },
      {
        "description": "Two lists compared line by line",
        "prompt": "Diff these lists line by line. List 1: apples, bananas, cherries, dates. List 2: apples, blueberries, cherries, dates, elderberries.",
        "tools_triggered": [
          "compare_texts"
        ],
        "expected_behavior": "66.67% similar: bananas → blueberries, and elderberries added."
      },
      {
        "description": "Spelling changes, character by character",
        "prompt": "Show the character differences between \"Please analyze the color of the center.\" and \"Please analyse the colour of the centre.\"",
        "tools_triggered": [
          "compare_texts"
        ],
        "expected_behavior": "93.67% similar by character: z → s, u added, and the er/re swap in centre."
      },
      {
        "description": "Ignoring case and spacing",
        "prompt": "Are these the same if you ignore capitals and spacing? \"Hello   World\" and \"hello world\"",
        "tools_triggered": [
          "compare_texts"
        ],
        "expected_behavior": "Identical (100%) once case and whitespace are ignored."
      }
    ],
    "negativeTestCases": [
      {
        "prompt": "Proofread my essay and fix the grammar.",
        "expected_behavior": "Does not call Handy Text Compare: Editing one text is not comparing two versions."
      },
      {
        "prompt": "Compare the iPhone 16 and the Pixel 9.",
        "expected_behavior": "Does not call Handy Text Compare: A product comparison, not a text diff."
      },
      {
        "prompt": "Check whether my essay is plagiarized from the internet.",
        "expected_behavior": "Does not call Handy Text Compare: Plagiarism detection searches the web; this tool only compares two texts the user provides."
      }
    ]
  }
}