# Javascript: TXTextControl.Proofing.loadUserDictionary Method

> Loads a list of words given as a string array as a user dictionary.

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

---

### Description

Loads a list of words given as a string array as a user dictionary.

### Syntax

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

### Parameters

| Parameter | Description |
|---|---|
| name | The user dictionary's name. |
| words | The list of words to create the user dictionary from. |
| language | The user dictionary's language in the format languagecode2-country/regioncode2. (e. g. "en-US" or "de-DE") |

### Examples

The following example demonstrates `TXTextControl.Proofing.loadUserDictionary` in a practical document-editing workflow. It loads a list of words given as a string array as a user dictionary.

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

---

## Nearby

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