When I feed the api with tow sentences by accident, there is an offset and length for the shortened content, but not for the sentence. Please check this match (json converted to php array, just the match part). Isn this inconsistent?
array(8) {
[“message”]=>
string(49) “Is dit niet overdreven? Is “hoog” niet voldoende?”
[“shortMessage”]=>
string(0) “”
[“replacements”]=>
array(1) {
[0]=>
array(1) {
[“value”]=>
string(4) “hoog”
}
}
[“offset”]=>
int(127)
[“length”]=>
int(8)
[“context”]=>
array(3) {
[“text”]=>
string(57) “… betreft geen grenzen kent.De prijs zal erg hoog zijn.”
[“offset”]=>
int(43)
[“length”]=>
int(8)
}
[“sentence”]=>
string(27) “De prijs zal erg hoog zijn.”
[“rule”]=>
array(5) {
[“id”]=>
string(12) “OVERDRIJVING”
[“subId”]=>
string(1) “2”
[“description”]=>
string(22) “mogelijke overdrijving”
[“issueType”]=>
string(13) “uncategorized”
[“category”]=>
array(2) {
[“id”]=>
string(5) “STYLE”
[“name”]=>
string(5) “Stijl”
}
}
}