Grammar API

Grammar Checker API

Correct English grammar, spelling and punctuation through your product. Each response includes the corrected text and a word-level record of every edit.

  • 1 credit per word
  • Up to 10,000 words
  • Complete diff returned
DOCUMENT 08 3 EDITS
ORIGINAL

The findings demonstrates demonstrate a clear pattern, but the conclusion is somewhat difficult to understand unclear without more context.

Replace 2 Insert 1

Edit history

See exactly what changed.

Use the corrected text as the final version, or use the ordered diff to show every insertion, deletion and replacement in your interface.

BEFORE 11 words

The report contain clear findings. However the supporting notes is incomplete.

replace insert replace
AFTER 3 edits

The report contains clear findings. However, the supporting notes are incomplete.

Offsets reference the original text Diff operations: replace, insert, delete Complete diff, never truncated

English variants

Match the English your users write.

Let the API detect the variant automatically, or choose US, UK, Canadian, Australian or Indian English.

Review target options ↗
target_variant "en-GB"
ORIGINAL

The team will analyze the final draft.

EN-GB

The team will analyse the final draft.

auto en-US en-GB en-CA en-AU en-IN

Correction request

Send text. Receive the correction and edit history.

Send content and, if needed, a target_variant. The response separates the finished corrected_text from the diff that identifies each edit.

Open request parameters ↗
POST /api/grammar/correct/
curl -X POST \
  https://developer-portal.proofademic.ai/api/grammar/correct/ \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "Text to correct",
    "target_variant": "en-CA"
  }'
application/json scope: grammar_checker
01 Authorize Use a scoped key
02 Submit Send English text
03 Correct Receive corrected text
04 Compare Show each edit

Request contract

Check text limits and credit use.

The API validates word and character limits before correction. Each response reports the input counts, edit count, execution time and remaining credits.

Usage model

1 credit per input word

The charge uses the submitted word count. Credits reserved for a request are refunded if correction fails.

1credit 1input word 5 minretry window 6target options

Use cases

Use grammar correction in writing tools.

Writing and review guides

Read practical guides to grammar and writing review.

View all articles →

API questions

Before your first correction request.

Start building

Add grammar correction to your product.

Create an API key, send English text and receive corrected text with each change listed in the returned diff.