# Javascript: TXTextControl.Proofing.addWordToUserDictionary Method

> Adds a word to an existing user dictionary.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.Proofing.addWordToUserDictionary Method
- **239 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-proofing/addwordtouserdictionary-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-proofing/addwordtouserdictionary-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-proofing/addwordtouserdictionary-method/llms-full.txt

---

### Description

Adds a word to an existing user dictionary.

### Syntax

```javascript
<void> TXTextControl.Proofing.addWordToUserDictionary(<string> name, <string[]> words)
```

### Parameters

| Parameter | Description |
|---|---|
| name | The user dictionary's name. |
| words | The word to add to the user dictionary. |

### Examples

The following example demonstrates `TXTextControl.Proofing.addWordToUserDictionary` in a practical document-editing workflow. It adds a word to an existing user dictionary.

```javascript
function addWordToUserDictionary(proofing) {
    proofing.addWordToUserDictionary("QuarterlyReport", ["Quarterly report", "Invoice"]);
}
```

---

## Nearby

- **Previous:** [TXTextControl.Proofing Object](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-proofing/llms-full.txt)
- **Next:** [Javascript: TXTextControl.Proofing.getDictionaryList Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-proofing/getdictionarylist-method/llms-full.txt)
