Sapling Logo
Sapling Logo SDK

Use Sapling's JavaScript SDK for turnkey spelling/grammar checking and autocomplete in any web application.

Use the Sapling dashboard to get a rate limited development key for testing purposes, or contact us for a production key.



Lets get started!

<script src="https://sapling.ai/static/js/sapling-sdk-v1.0.1.min.js"></script>
<div contenteditable="true" id="check-space"></div>

<script type="text/javascript">
Sapling.init({
  endpointHostname: "https://api.sapling.ai",
  editPathname: "/api/edits",
  completePathname: "/api/complete",
  autocomplete: true,
  statusBadge: true,
});

const contentEditable = document.getElementById('check-space');
Sapling.observe(contentEditable);
</script>
Developed by former researchers at:

Cal Stanford Google

  60% more grammar corrections

… than other systems at similar accuracy using state-of-the-art machine learning systems for natural language processing.

  Over 20 error types

Error categories such as preposition, noun form, and verb tense, including both high-level and fine-grained error information.

  Enterprise Security

Ask us about our no data retention policies, self-hosted/on-premises deployment options, and other cybersecurity policies and procedures.

  Low latency

Achieve the same real-time performance that users of Sapling's own interface experience.

  Custom models

Get corrections and edits tuned to the domain of your text—for example academic writing vs. subtitles.

  API

Looking for more than a JavaScript grammar checker? Use Sapling's Web API to process high volumes of text or integrate custom interfaces.

Detailed API docs available.