demo · v139

Correction Review

Run the Proofreader API and review each suggested correction individually — accept to apply it to the document, reject to skip. A common editorial workflow, now powered by on-device AI with no server round-trip.

Origin trial / flag The Proofreader API requires chrome://flags/#proofreader-api-for-gemini-nano or the origin trial. On unsupported browsers, a set of simulated corrections is shown so you can see the review workflow.
Checking Proofreader API…
const proofreader = await Proofreader.create();
const result = await proofreader.proofread(text);

for (const correction of result.corrections) {
  console.log('Original:', correction.original);
  console.log('Suggestion:', correction.suggestion);
  console.log('Reason:', correction.reason);

  // Apply accepted corrections back to the document
  if (userAccepts(correction)) {
    text = text.replace(correction.original, correction.suggestion);
  }
}

see also