{
  "tool": "matric-nqf4.rel_text_compare",
  "name": "Fixed-text comparison statistic (CDU-GEN-NSC-400)",
  "answers": "The shared and unique word counts of two supplied passages — a deterministic comparison, never a model-marked essay.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Religion Studies row of §4 — a fixed-text comparison statistic",
  "endpoint": "/faculty/matric-nqf4/rel_text_compare",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "textA",
      "textB"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "textA": {
        "type": "string",
        "description": "first passage"
      },
      "textB": {
        "type": "string",
        "description": "second passage"
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "sharedWords",
      "uniqueToA",
      "uniqueToB"
    ],
    "properties": {
      "sharedWords": {
        "type": "number",
        "description": "distinct words in both"
      },
      "uniqueToA": {
        "type": "number",
        "description": "distinct words only in A"
      },
      "uniqueToB": {
        "type": "number",
        "description": "distinct words only in B"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "textA": "Compassion and justice guide the community.",
    "textB": "Justice and mercy guide the household."
  }
}