STANDS4 Web Services:

Grammar API

The Grammar API from STANDS4 is a web service for checking the spelling and style of text in many languages.

Request URL:

http://www.stands4.com/services/v2/grammar.php

Request parameters:

Parameter Value Required Default Description
uid string Y  

Your API user id

tokenid string Y  

Your valid developer token id

text string Y  

The text you would like to check

lang string Y  

The language of the provided text

Sample request URL:

http://www.stands4.com/services/v2/grammar.php?uid=1001&tokenid=tk324324&text=i%20loves%20you

Response elements:

matches Contains all of the check responses
message

Specific error message

rule

Rule broken ID

description

Rule broken description

Sample response:

{
  software: {
    name: "LanguageTool",
    version: "3.8-SNAPSHOT",
    buildDate: "2017-06-10 20:01",
    apiVersion: 1,
    status: ""
  },
  warnings: {
    incompleteResults: false
  },
  language: {
    name: "English (US)",
    code: "en-US"
  },
  matches: [
    {
      message: "This sentence does not start with an uppercase letter",
      shortMessage: "",
      replacements: [
        {
          value: "I"
        }
      ],
      offset: 0,
      length: 1,
      context: {
        text: "i loves you",
        offset: 0,
        length: 1
      },
      rule: {
        id: "UPPERCASE_SENTENCE_START",
        description: "Checks that a sentence starts with an uppercase letter",
        issueType: "typographical",
        category: {
          id: "CASING",
          name: "Capitalization"
        }
      }
    }
  ]
}

Want to use this service?

The Grammar API service is free to use for up to 100 queries per day.

For a premium commercial license, please contact us.

Apply here

Improve your writing now:

Download Grammar eBooks

It’s now more important than ever to develop a powerful writing style. After all, most communication takes place in reports, emails, and instant messages.