DS Server

MisspelledWordInfo Object

Object|Introduced in 28.0

Description

Information about a misspelled word.

Syntax

{
   isDuplicate: <Boolean>,
   isIgnored: <Boolean>,
   length: <Number>,
   number: <Number>,
   start: <Number>,
   text: <String>
}

Examples

The following example demonstrates MisspelledWordInfo in a practical document-editing workflow. Information about a misspelled word.

function inspectMisspelledWordInfo(misspelledWordInfo) {
    console.log("is duplicate:", misspelledWordInfo.isDuplicate);
    console.log("is ignored:", misspelledWordInfo.isIgnored);
    console.log("length:", misspelledWordInfo.length);
    console.log("number:", misspelledWordInfo.number);
}

Members

Properties

PropertyDescription
isDuplicateA value which marks the misspelled word as duplicate.
isIgnoredA value which marks the misspelled word as ignored.
lengthThe length of the misspelled word.
numberThe number of the misspelled word.
startThe starting position of the misspelled word.
textThe text of the misspelled word.