{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudmersive/json-schema/cloudmersive-check-sentence-response-schema.json",
  "title": "CheckSentenceResponse",
  "description": "Result of spell checking a sentence",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudmersive-spellcheck-api-openapi.yml#/components/schemas/CheckSentenceResponse",
  "type": "object",
  "properties": {
    "IncorrectCount": {
      "format": "int32",
      "description": "Number of incorrect words",
      "type": "integer"
    },
    "Words": {
      "description": "Words in the sentence, both correct and incorrect",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CorrectWordInSentence"
      }
    }
  },
  "$defs": {
    "CorrectWordInSentence": {
      "description": "A word in a sentence",
      "type": "object",
      "properties": {
        "Word": {
          "$ref": "#/$defs/WordPosition",
          "description": "Position of the word"
        },
        "Correct": {
          "description": "True if the word is spelled correctly, false otherwise",
          "type": "boolean"
        },
        "Suggestions": {
          "description": "Suggested spelling improvements",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "WordPosition": {
      "type": "object",
      "properties": {
        "Word": {
          "description": "Word as a string",
          "type": "string"
        },
        "WordIndex": {
          "format": "int32",
          "description": "Zero-based index of the word; first word has index 0, second word has index 1 and so on",
          "type": "integer"
        },
        "StartPosition": {
          "format": "int32",
          "description": "Zero-based character offset at which the word begins in the input string",
          "type": "integer"
        },
        "EndPosition": {
          "format": "int32",
          "description": "Zero-based character offset at which the word ends in the input string",
          "type": "integer"
        }
      }
    }
  }
}