GrammarBot

FREEMIUM
By grammarbot | Updated לפני 15 ימים | Text Analysis
Popularity

9.7 / 10

Latency

1,131ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Issue with special characters

Rapid account: Kedash 1287
kedash1287
2 years ago

When there is any % or other special character then from the api that % is not returned

“context”:{
“text”:"…ed out by the 60 citizen gained immensely from the proposed gove…",
“offset”:43,
“length”:7
},

It should return 60% but % is omitted. That is changing the offset and i can’t correct the incorrect sentence. Any solution for that

Rapid account: Amarsheshs
amarsheshs Commented 2 years ago

Did you get this api for free ?

Rapid account: Grammarbot
grammarbot Commented 2 years ago

I’m wondering if you need to encode your text before submitting it. Try submitting the following simple text as a test:

** I agree 100% wit what you said.**

What do you get when you submit this? Here’s my response (notice that % is indeed included):

{

"software": {

    "name": "GrammarBot",

    "version": "4.3.1",

    "apiVersion": 1,

    "premium": false,

    "premiumHint": "You might be missing errors only the Premium version can find. Upgrade to see what you're missing.",

    "status": ""

},

"warnings": {

    "incompleteResults": false

},

"language": {

    "name": "English (US)",

    "code": "en-US",

    "detectedLanguage": {

        "name": "English (US)",

        "code": "en-US"

    }

},

"matches": [

    {

        "message": "Statistics suggests that 'with' might be the correct word here. Please check.",

        "shortMessage": "",

        "replacements": [

            {

                "value": "with"

            }

        ],

        "offset": 13,

        "length": 3,

        "context": {

            "text": "I agree 100% wit what you said.",

            "offset": 13,

            "length": 3

        },

        "sentence": "I agree 100% wit what you said.",

        "type": {

            "typeName": "Other"

        },

        "rule": {

            "id": "CONFUSION_RULE",

            "description": "Statistically detect wrong use of words that are easily confused",

            "issueType": "non-conformance",

            "category": {

                "id": "TYPOS",

                "name": "Possible Typo"

            }

        }

    }

]

}

Join in the discussion - add comment below:

Login / Signup to post new comments