/ opengrammar / example-response.json
swadhinbiswas docs: add example backend response JSON · 2/19/2026
0886cef
37 lines · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  "issues": [
    {
      "type": "grammar",
      "original": "me and him went",
      "suggestion": "he and I went",
      "reason": "Subject-verb agreement error.",
      "offset": 0,
      "length": 15
    },
    {
      "type": "spelling",
      "original": "teh",
      "suggestion": "the",
      "reason": "Misspelled word.",
      "offset": 20,
      "length": 3
    },
    {
      "type": "clarity",
      "original": "utilize",
      "suggestion": "use",
      "reason": "Simpler word choice.",
      "offset": 45,
      "length": 7
    },
    {
      "type": "style",
      "original": "mistakes were made",
      "suggestion": "we made mistakes",
      "reason": "Passive voice.",
      "offset": 60,
      "length": 18
    }
  ]
}