Skip to content
HALOWERK

Denkwerk

contamination check

Builds the set of word n-grams (default 8, configurable 5–13) of the supplied corpus and reports for every evaluation item the share of its n-grams found in the corpus, the longest matching span and a contaminated flag above the threshold. Mirrors the n-gram overlap method used in published contamination analyses; corpus up to 20 MB of text.

POST https://denk.halowerk.com/v1/contamination-check

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
itemsarrayYes
corpusstringYes
nintegerNo
thresholdnumberNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items",
    "corpus"
  ],
  "properties": {
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5000,
      "items": {
        "type": "string",
        "maxLength": 20000
      }
    },
    "corpus": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000000
    },
    "n": {
      "type": "integer",
      "minimum": 5,
      "maximum": 13,
      "default": 8
    },
    "threshold": {
      "type": "number",
      "minimum": 0.01,
      "maximum": 1,
      "default": 0.5
    }
  }
}

Open original schema

Published input example

{
  "n": 5,
  "items": [
    "The quick brown fox jumps over the lazy dog today."
  ],
  "corpus": "Once upon a time the quick brown fox jumps over the lazy dog and ran."
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →