How to check grammar and spelling of your text content with JavaScript?

How to check grammar and spelling of your text content with JavaScript?

In this tutorial, you will learn how to use Grammar & Spelling Check API in 5 minutes using JavaScript. Eden AI provides an easy and developer-friendly API that allows you to check grammar and spelling in your text content.

What is AI Grammar & Spell Checker?

AI Spell Check API typically uses natural language processing (NLP) techniques, machine learning algorithms, and large language models to analyze text input and detect errors in grammar, spelling, punctuation, and sentence structure. It can identify and suggest corrections for various types of mistakes, such as misspelled words, incorrect verb conjugations, faulty syntax, or improper word usage.

AI Grammar and Spell Check API result on Eden AI

By automatically identifying and correcting errors, this technology can be used to enhance the quality of written content, improve user experience, and ensure better communication. It can be particularly useful in applications like word processors, email clients, chatbots, content management systems, language learning platforms, and any other system where accurate writing remains important.

Get Started with Grammar & Spell Check API using JavaScript

The first step is to set Axios, a promise-based HTTP client for the browser and Node.js, that will allow you to call Eden AI API.

How to use Grammar & Spell Check API with JavaScript

You are now ready to process text into Eden AI Grammar & Spelling Check API. You can access the list of languages supported in our documentation here.

1. Get your Spell Check API Key on Eden AI

To perform Grammar & Spell Check, you'll need to create an account on Eden AI for free. Then, you'll be able to get your API key directly from the homepage with free credits offered by Eden AI.

Eden AI platform - Get your API key

2. Let’s check grammar and spelling in your text content

Now that you have imported packages on JavaScript and got your API key, you will be able to check grammar and spelling in your text content. With Eden AI, you can choose from a wide range of engines you want for AI Spell Checker. You can access the list of Grammar & Spelling Check providers available on Eden AI directly on our documentation.

For example, we called two different Grammar & Spelling Check engines. Here is the JS code to configure the request:

Then, you'll need to launch the request and print the result:

Here is an example of a Grammar & Spell Check API response:

Benefits of using Grammar & Spell Checker with Eden AI

Using Grammar & Spell Check with Eden AI API is quick and easy.

Multiple AIs in one API - Eden AI
Multiple AI engines in one API

Save time and cost

We offer a unified API for all providers: simple and standard to use, with a quick switch between providers and an access to the specific features of each provider.

Easy to integrate

The JSON output format is the same for all suppliers thanks to Eden AI's standardisation work. The response elements are also standardised thanks to Eden AI's powerful matching algorithms.


With Eden AI you have the possibility to integrate a third party platform: we can quickly develop connectors. To go further and customize your Grammar & Spell Check request with specific parameters, check out our documentation.

Related Posts

Try Eden AI for free.

You can directly start building now. If you have any questions, feel free to schedule a call with us!

Get startedContact sales