# MisspelledWord Object

> The MisspelledWord object represents a misspelled word in a document's text.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > MisspelledWord Object
- **723 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/llms-full.txt

---

### Description

The MisspelledWord object represents a misspelled word in a document's text.

### Syntax

```javascript
MisspelledWord
```

### Examples

The following example demonstrates `MisspelledWord` in a practical document-editing workflow. The MisspelledWord object represents a misspelled word in a document's text.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectMisspelledWord(misspelledWord) {
    misspelledWord.getText(
        function(result) {
            console.log("get text result:", result);
        },
        onTxError
    );
}
```

---

## In This Section

- [Javascript: MisspelledWord.getIsDuplicate Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/getisduplicate-method/llms-full.txt): Gets a value which marks the misspelled word as duplicate.
- [Javascript: MisspelledWord.getIsIgnored Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/getisignored-method/llms-full.txt): Gets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line
- [Javascript: MisspelledWord.getLength Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/getlength-method/llms-full.txt): Gets the length of a misspelled word.
- [Javascript: MisspelledWord.getNumber Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/getnumber-method/llms-full.txt): Gets the number of this misspelled word. All misspelled words are counted from the beginning to the end of a document. The first word has the number 1.
- [Javascript: MisspelledWord.getStart Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/getstart-method/llms-full.txt): Gets the starting position of a misspelled word. It is a one-based index of the word's first character.
- [Javascript: MisspelledWord.getText Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/gettext-method/llms-full.txt): Gets the text of the misspelled word.
- [Javascript: MisspelledWord.select Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/select-method/llms-full.txt): Selects the misspelled word in the text.
- [Javascript: MisspelledWord.setIsDuplicate Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/setisduplicate-method/llms-full.txt): Sets a value which marks the misspelled word as duplicate. A duplicate word is not misspelled, but it has the same text as the word in front of it.
- [Javascript: MisspelledWord.setIsIgnored Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/setisignored-method/llms-full.txt): Sets a value which marks the misspelled word as ignored. An ignored misspelled word remains in the collection of misspelled words, but it is not underlined in the text with a red zigzag line.

---

## Nearby

- **Previous:** [Javascript: LoadDocumentCallbackData.pageSize Property](https://docs.textcontrol.com/ds-server/reference/javascript/loaddocumentcallbackdata/pagesize-property/llms-full.txt)
- **Next:** [Javascript: MisspelledWord.getIsDuplicate Method](https://docs.textcontrol.com/ds-server/reference/javascript/misspelledword/getisduplicate-method/llms-full.txt)
