语法错误修正 API
{
"id": "e6360a99-701b-813b-7296-f08057918320",
"corrections": [
{
"suggestion": "It is",
"startIndex": 0,
"endIndex": 8,
"originalText": "It is is",
"correctionType": "Word Repetition"
},
{
"suggestion": "doesn't",
"startIndex": 43,
"endIndex": 49,
"originalText": "doesnt",
"correctionType": "Grammar"
},
{
"suggestion": "difficult",
"startIndex": 60,
"endIndex": 68,
"originalText": "difikolt",
"correctionType": "Spelling"
},
{
"suggestion": "lunch?",
"startIndex": 122,
"endIndex": 127,
"originalText": "lunch",
"correctionType": "Punctuation"
}
]
}
suggestion:
建议的修正。startIndex:
修正过程在提供的文本中的开始索引。endIndex:
修正过程在提供的文本中的结束索引。originalText:
发现错误的原始文本。correctionType:
一个必填字段,指明 GEC API 建议的修正类型。修改于 2023-11-13 03:49:27