Skip to content

Instantly share code, notes, and snippets.

@cormac-work
Created March 27, 2019 13:25
Show Gist options
  • Save cormac-work/2eb564228c57f929f59e363cb8388c69 to your computer and use it in GitHub Desktop.
Save cormac-work/2eb564228c57f929f59e363cb8388c69 to your computer and use it in GitHub Desktop.
curl + grammar analysis
curl -H "Content-Type: application/json" \
-d "api_key=AF5B9M2X" \
-d "language=en-US" \
-d "text=Durand company offers to you the more efficient service than all others companies in Europe. For example we assure 3 years garranty for all of our products. all of the other companies assure only one year of garranty. we were the first company to developp application with the internet tools in 1990. then now , we have acquired a solid experience with this technology. We have developped 200 applications with internet instead of Our major competitor have just 5 or 6 application . Then you can wait for us the highest level of service and best solution to your specifics applications You will be happy to follow the thousand companies which have confidence and work with us since 30 years. take any time to make your choice. All the employees are ready to strengh this collaboration for the next year." \
"http://api.grammarbot.io/v2/check"
{
"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": "Possible spelling mistake found",
"shortMessage": "Spelling mistake",
"replacements": [
{
"value": "Duran"
},
{
"value": "Durant"
},
{
"value": "Du rand"
},
{
"value": "Duran d"
}],
"offset": 0,
"length": 6,
"context":
{
"text": "Durand company offers to you the more efficien...",
"offset": 0,
"length": 6
},
"sentence": "Durand company offers to you the more efficient service than all others companies in Europe.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MORFOLOGIK_RULE_EN_US",
"description": "Possible spelling mistake",
"issueType": "misspelling",
"category":
{
"id": "TYPOS",
"name": "Possible Typo"
}
}
},
{
"message": "The comma is probably missing here: \"example, we\".",
"shortMessage": "Missing comma",
"replacements": [
{
"value": "example, we"
}],
"offset": 97,
"length": 10,
"context":
{
"text": "...han all others companies in Europe. For example we assure 3 years garranty for all of our ...",
"offset": 43,
"length": 10
},
"sentence": "For example we assure 3 years garranty for all of our products.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MISSING_COMMA_AFTER_INTRODUCTORY_PHRASE",
"subId": "1",
"description": "Missing comma after introductory phrase",
"issueType": "typographical",
"urls": [
{
"value": "http://englishplus.com/grammar/00000074.htm"
}],
"category":
{
"id": "PUNCTUATION",
"name": "Punctuation"
}
}
},
{
"message": "Possible spelling mistake found",
"shortMessage": "Spelling mistake",
"replacements": [
{
"value": "warranty"
}],
"offset": 123,
"length": 8,
"context":
{
"text": "...n Europe. For example we assure 3 years garranty for all of our products. all of the oth...",
"offset": 43,
"length": 8
},
"sentence": "For example we assure 3 years garranty for all of our products.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MORFOLOGIK_RULE_EN_US",
"description": "Possible spelling mistake",
"issueType": "misspelling",
"category":
{
"id": "TYPOS",
"name": "Possible Typo"
}
}
},
{
"message": "Consider using \"all the\".",
"shortMessage": "Redundant phrase",
"replacements": [
{
"value": "all the"
}],
"offset": 157,
"length": 10,
"context":
{
"text": "...years garranty for all of our products. all of the other companies assure only one year of...",
"offset": 43,
"length": 10
},
"sentence": "all of the other companies assure only one year of garranty.",
"type":
{
"typeName": "Hint"
},
"rule":
{
"id": "ALL_OF_THE",
"subId": "1",
"description": "all of the (all the)",
"issueType": "style",
"category":
{
"id": "REDUNDANCY",
"name": "Redundant Phrases"
}
}
},
{
"message": "Possible spelling mistake found",
"shortMessage": "Spelling mistake",
"replacements": [
{
"value": "warranty"
}],
"offset": 208,
"length": 8,
"context":
{
"text": "...other companies assure only one year of garranty. we were the first company to developp ...",
"offset": 43,
"length": 8
},
"sentence": "all of the other companies assure only one year of garranty.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MORFOLOGIK_RULE_EN_US",
"description": "Possible spelling mistake",
"issueType": "misspelling",
"category":
{
"id": "TYPOS",
"name": "Possible Typo"
}
}
},
{
"message": "This sentence does not start with an uppercase letter",
"shortMessage": "",
"replacements": [
{
"value": "We"
}],
"offset": 218,
"length": 2,
"context":
{
"text": "...anies assure only one year of garranty. we were the first company to developp appl...",
"offset": 43,
"length": 2
},
"sentence": "we were the first company to developp application with the internet tools in 1990.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "UPPERCASE_SENTENCE_START",
"description": "Checks that a sentence starts with an uppercase letter",
"issueType": "typographical",
"category":
{
"id": "CASING",
"name": "Capitalization"
}
}
},
{
"message": "Possible spelling mistake found",
"shortMessage": "Spelling mistake",
"replacements": [
{
"value": "develop"
},
{
"value": "develops"
},
{
"value": "develop p"
}],
"offset": 247,
"length": 8,
"context":
{
"text": "... garranty. we were the first company to developp application with the internet tools in ...",
"offset": 43,
"length": 8
},
"sentence": "we were the first company to developp application with the internet tools in 1990.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MORFOLOGIK_RULE_EN_US",
"description": "Possible spelling mistake",
"issueType": "misspelling",
"category":
{
"id": "TYPOS",
"name": "Possible Typo"
}
}
},
{
"message": "This sentence does not start with an uppercase letter",
"shortMessage": "",
"replacements": [
{
"value": "Then"
}],
"offset": 301,
"length": 4,
"context":
{
"text": "...cation with the internet tools in 1990. then now , we have acquired a solid experien...",
"offset": 43,
"length": 4
},
"sentence": "then now , we have acquired a solid experience with this technology.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "UPPERCASE_SENTENCE_START",
"description": "Checks that a sentence starts with an uppercase letter",
"issueType": "typographical",
"category":
{
"id": "CASING",
"name": "Capitalization"
}
}
},
{
"message": "Put a space after the comma, but not before the comma",
"shortMessage": "",
"replacements": [
{
"value": ","
}],
"offset": 309,
"length": 2,
"context":
{
"text": "...ith the internet tools in 1990. then now , we have acquired a solid experience wit...",
"offset": 43,
"length": 2
},
"sentence": "then now , we have acquired a solid experience with this technology.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "COMMA_PARENTHESIS_WHITESPACE",
"description": "Use of whitespace before comma and before/after parentheses",
"issueType": "whitespace",
"category":
{
"id": "TYPOGRAPHY",
"name": "Typography"
}
}
},
{
"message": "Possible spelling mistake found",
"shortMessage": "Spelling mistake",
"replacements": [
{
"value": "developed"
}],
"offset": 378,
"length": 10,
"context":
{
"text": "...xperience with this technology. We have developped 200 applications with internet instead ...",
"offset": 43,
"length": 10
},
"sentence": "We have developped 200 applications with internet instead of Our major competitor have just 5 or 6 application .",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MORFOLOGIK_RULE_EN_US",
"description": "Possible spelling mistake",
"issueType": "misspelling",
"category":
{
"id": "TYPOS",
"name": "Possible Typo"
}
}
},
{
"message": "Don't put a space before the full stop",
"shortMessage": "",
"replacements": [
{
"value": "."
}],
"offset": 480,
"length": 2,
"context":
{
"text": "... competitor have just 5 or 6 application . Then you can wait for us the highest le...",
"offset": 43,
"length": 2
},
"sentence": "We have developped 200 applications with internet instead of Our major competitor have just 5 or 6 application .",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "COMMA_PARENTHESIS_WHITESPACE",
"description": "Use of whitespace before comma and before/after parentheses",
"issueType": "whitespace",
"category":
{
"id": "TYPOGRAPHY",
"name": "Typography"
}
}
},
{
"message": "Did you mean \"for\"? ('since' refers to a point in time, whereas 'for' refers to a period)",
"shortMessage": "Commonly confused word",
"replacements": [
{
"value": "for"
}],
"offset": 676,
"length": 5,
"context":
{
"text": "... which have confidence and work with us since 30 years. take any time to make your ch...",
"offset": 43,
"length": 5
},
"sentence": "Then you can wait for us the highest level of service and best solution to your specifics applications You will be happy to follow the thousand companies which have confidence and work with us since 30 years.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "SINCE_FOR",
"subId": "1",
"description": "since (for) + 'period of time'",
"issueType": "misspelling",
"urls": [
{
"value": "http://www.grammarbank.com/since-for-usage.html"
}],
"category":
{
"id": "CONFUSED_WORDS",
"name": "Commonly Confused Words"
}
}
},
{
"message": "This sentence does not start with an uppercase letter",
"shortMessage": "",
"replacements": [
{
"value": "Take"
}],
"offset": 692,
"length": 4,
"context":
{
"text": "...idence and work with us since 30 years. take any time to make your choice. All the e...",
"offset": 43,
"length": 4
},
"sentence": "take any time to make your choice.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "UPPERCASE_SENTENCE_START",
"description": "Checks that a sentence starts with an uppercase letter",
"issueType": "typographical",
"category":
{
"id": "CASING",
"name": "Capitalization"
}
}
},
{
"message": "Possible spelling mistake found",
"shortMessage": "Spelling mistake",
"replacements": [
{
"value": "strength"
}],
"offset": 758,
"length": 7,
"context":
{
"text": "... choice. All the employees are ready to strengh this collaboration for the next year.",
"offset": 43,
"length": 7
},
"sentence": "All the employees are ready to strengh this collaboration for the next year.",
"type":
{
"typeName": "Other"
},
"rule":
{
"id": "MORFOLOGIK_RULE_EN_US",
"description": "Possible spelling mistake",
"issueType": "misspelling",
"category":
{
"id": "TYPOS",
"name": "Possible Typo"
}
}
}]
}%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment