Deprecated Legacy API

Spell Check API v2

Check

action: api/v2/spellCheck/check
    token                    string
    lang                     lang
    text                     list(string)
    referenceText            list(string)                     O
    zeroLengthSeparator      string                           O

response: JSON
   [
     {
       "text":"hello",
       "misspelledWords":[]
     },
     {
       "text":"World",
       "misspelledWords":[]
     },
     {
       "text":"foox hella",
       "misspelledWords":[
         {
           "word":"foox",
           "offset":0
         },
         {
           "word":"hella",
           "offset":5
         }
       ]
     }
   ]

error codes
    LanguageNotSupported

Check By Task

action: api/v2/spellCheck/checkByTask
    token                    string
    task                     task
    lang                     lang
    text                     list(string)
    referenceText            list(string)                     O
    zeroLengthSeparator      string                           O

response: see spellCheck/check

Suggest

action: api/v2/spellCheck/suggest
    token                    string
    lang                     lang
    word                     list(string)
    referenceText            list(string)                     O

response: JSON
   [
     {
       "word":"hella",
       "suggestions":[
         {
           "word":"hello",
           "distance":1
         },
         {
           "word":"Vella",
           "distance":1
         },
         {
           "word":"hells",
           "distance":1
         },
         {
           "word":"Sella",
           "distance":1
         },
         {
           "word":"hell",
           "distance":1
         },
         {
           "word":"Bella",
           "distance":1
         },
         {
           "word":"Mella",
           "distance":1
         },
         {
           "word":"hell a",
           "distance":1
         },
         {
           "word":"Della",
           "distance":1
         },
         {
           "word":"fella",
           "distance":1
         },
         {
           "word":"Heall",
           "distance":3
         }
       ]
     },
     {
       "word":"Warld",
       "suggestions":[
         {
           "word":"Wared",
           "distance":1
         },
         {
           "word":"Ward",
           "distance":1
         },
         {
           "word":"Wald",
           "distance":1
         },
         {
           "word":"World",
           "distance":1
         },
         {
           "word":"Warlord",
           "distance":2
         }
       ]
     }
   ]

Add Word

action: api/v2/spellCheck/addWord
    token                    string
    lang                     lang
    word                     string

response: empty
Was this article helpful?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question you can leave a public comment below or Submit a request to our Support team.
Thank you for your feedback.

Comments

0 comments

Please sign in to leave a comment.