{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://slopvac.github.io/slopvac/schemas/v3/blocklist.schema.json",
  "title": "slopvac v3 word blocklist",
  "description": "A list of words a project refuses, each with a part of speech and a reason. The opt-in vocabulary check reads it; it is off unless `terms.blocklists` or `[vocabulary] path` names a file. The file may be TOML, JSON or YAML (`.toml`, `.json`, `.yml` or `.yaml`); the file suffix picks the format. Semantics are specified in docs/contract/plugins.md. Owner: slopvac-8l4.2.4.",
  "type": "object",
  "properties": {
    "schema_version": {
      "$ref": "common.schema.json#/$defs/SchemaVersion"
    },
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BlocklistEntry"
      }
    }
  },
  "required": [
    "schema_version",
    "entries"
  ],
  "patternProperties": {
    "^x-": {}
  },
  "additionalProperties": false,
  "$defs": {
    "BlocklistEntry": {
      "description": "One refused word. The word is trimmed and lower-cased on load. A word and part of speech pair appears once.",
      "type": "object",
      "properties": {
        "word": {
          "type": "string",
          "pattern": "\\S"
        },
        "pos": {
          "description": "Part of speech. The values are case-sensitive and load as their long form: the lowercase short and long forms, and the spaCy tags NOUN, VERB, ADJ, ADV, ADP, CCONJ, SCONJ, PRON and DET.",
          "enum": [
            "n",
            "noun",
            "v",
            "verb",
            "adj",
            "adjective",
            "adv",
            "adverb",
            "prep",
            "preposition",
            "conj",
            "conjunction",
            "pron",
            "pronoun",
            "art",
            "article",
            "NOUN",
            "VERB",
            "ADJ",
            "ADV",
            "ADP",
            "CCONJ",
            "SCONJ",
            "PRON",
            "DET"
          ]
        },
        "reason": {
          "description": "Why the word is refused. Required: an entry with no reason cannot be reviewed.",
          "type": "string",
          "pattern": "\\S"
        },
        "replacement": {
          "description": "A note on what to write instead.",
          "type": "string"
        }
      },
      "required": [
        "word",
        "pos",
        "reason"
      ],
      "patternProperties": {
        "^x-": {}
      },
      "additionalProperties": false
    }
  }
}
