JSpell Checker

FREEMIUM
By Page Scholar Inc | Updated il y a un mois | Text Analysis
Popularity

9.5 / 10

Latency

951ms

Service Level

100%

Health Check

N/A

Followers: 11
Resources:
Product Website
API Creator:
Rapid account: Page Scholar Inc
Page Scholar Inc
page-scholar-inc
Log In to Rate API
Rating: 4 - Votes: 2

README

JSpell Spell Checker API is a powerful and easy-to-use API that provides spell checking and suggestions capabilities for applications. This documentation will guide you through the process of integrating the JSpell API into your application using RapidAPI.

  1. Sign up for RapidAPI
    To start using the JSpell Spell Checker API, you first need to sign up for a RapidAPI account:

Visit https://rapidapi.com and sign up for a free account.
Log in to your RapidAPI account.

  1. Subscribe to the JSpell Spell Checker API

Go to the pricing tab for JSpell Spell Checker API page on RapidAPI: https://rapidapi.com/page-scholar-inc-page-scholar-inc-default/api/jspell-checker/pricing
Choose a subscription plan that suits your needs. Our BASIC plan has a generous number of rate limited free requests per month. Our paid plans remove rate limiting and have new reduced pricing. Click “Subscribe” and follow the instructions to complete the subscription process.

  1. Get Your RapidAPI Key
    After subscribing to the JSpell Spell Checker API, you need to obtain your RapidAPI key. This key will be used to authenticate your requests to the API:

Click on the “API Key” tab on the JSpell Spell Checker API page.
Copy the “X-RapidAPI-Key” value, which is your RapidAPI key.

  1. Basic Usage
    You can use the JSpell Spell Checker API with any programming language that supports HTTP requests. This example demonstrates how to use the API with Java and the popular OkHttp library:

4.1 Add Dependencies (for Java)
Add the following dependencies to your Maven or Gradle project:

Gradle
implementation ‘com.squareup.okhttp3:okhttp:4.9.3’

Maven

com.squareup.okhttp3
okhttp
4.9.3

4.2 Make API Request (for Java)

import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;

import java.io.IOException;

public class Main {
public static void main(String[] args) {
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse(“application/json”);
String value = “{
\t"language”: “enUS”,
\t"fieldvalues": “thiss is intresting”,
\t"config": {
\t\t"forceUpperCase": false,
\t\t"ignoreIrregularCaps": false,
\t\t"ignoreFirstCaps": true,
\t\t"ignoreNumbers": true,
\t\t"ignoreUpper": false,
\t\t"ignoreDouble": false,
\t\t"ignoreWordsWithNumbers": true
\t}
}";
RequestBody body = RequestBody.create(mediaType, value);
Request request = new Request.Builder()
.url(“https://jspell-checker.p.rapidapi.com/check”)
.post(body)
.addHeader(“content-type”, “application/json”)
.addHeader(“X-RapidAPI-Key”, “YOURKEY”)
.addHeader(“X-RapidAPI-Host”, “jspell-checker.p.rapidapi.com”)
.build();

Response response = client.newCall(request).execute();
}
}

The response will be in JSON format, which you can parse to obtain the spell checking results and suggestions.

Create a class to represent the response:

import java.util.List;

public class JSpellResponse {
private boolean correctlySpelled;
private List suggestions;

public boolean isCorrectlySpelled() {
    return correctlySpelled;
}

public void setCorrectlySpelled(boolean correctlySpelled) {
    this.correctlySpelled = correctlySpelled;
}

public List getSuggestions() {
    return suggestions;
}

public void setSuggestions(List suggestions) {
    this.suggestions = suggestions;
}

}

More information and documentation, as well as spell check SDKs that you can run on your own servers are available here: https://www.jspell.com/software/