Check spelling API
Check API combines all available check types and is a replacement for older Check spelling API and Grammar check API.
Command name: check_spelling
Here is a list of all possible parameters and values that can be used with the check_spelling command.
1
format
json
xml
json
The response format for output data.
2
callback
callback function name
A callback function name that will be used to manipulate with the JSON data received from the server. Such approach enables sharing of data bypassing same-origin policy. It can be used only along with “format=json”.
3
out_type
positions – Return positions and length of misspelled words in a given text and their suggestions.
words – Return misspelled words and their suggestions.
words
A type of data output specifying the way to return misspelled words positions in the provided text or exact words.
4
ignore_all_caps
0 – Do not ignore all words written in capital letters (e.g. UPPERCASE).
1 – Ignore all words written in capital letters.
0
Ignore capitalized words.
5
ignore_words_with_numbers
0 – Do not ignore words that contain numbers (e.g. Number1).
1 – Ignore words that contain numbers.
0
Ignore words containing numbers.
6
ignore_mixed_case
0 – Do not ignore words with mixed case letters (e.g. MixedCase).
1 – Ignore words with mixed case letters.
0
Ignore words written with mixed case letters.
7
ignore_domain_names
0 – Do not ignore web addresses that start with either “www”, “http:” or “https:” and end with a domain name.
1 – Ignore web addresses and domain names.
0
Ignore domain names, web addresses.
8
text
plain text
A piece of text which will be sent for check. The text has to be in the UTF-8 encoding. Any found tags in the text will be interpreted as a plan text as well.
Avoid using # and & symbols in the text.
9
slang
Supported languages (e.g. en_US)
en_US
A short code of a language which will be used for spell checking.
10
user_dictionary
user dictionary name (e.g. testdict)
A user dictionary name which will be used during spell checking.
11
user_wordlist
additional wordlist
The list of additional comma-separated words which will be used for spell checking.
12
custom_dictionary
custom dictionary IDs (e.g. 100694)
13
version
1.0
1.0
The version of Web API.
14
customerid
your-service-id value
A special service ID value (activation key) that has to be passed to a request query. It's obtained upon subscription to the Cloud services (paid or trial).
Applicable only for the Cloud version.
Example 1: [GET] Check spelling
Request URL (GET):
Parameters:
Command: check_spelling
Format: json
Text: This sampl text demonstrates the work of the WebSpellChecker Web API service.
Output: words
Language: en_US
Response:
Example 2: [POST] Check spelling
Here we use the same request and parameters as described in example above but form it as a POST request.
Request URL (GET):
Body (Raw):
Response:
Last updated
Was this helpful?