# SaveUserDictionaryCallback Function

> Callback function for saving a user dictionary via TXTextControl.Proofing.saveUserDictionary.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > SaveUserDictionaryCallback Function
- **243 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/saveuserdictionarycallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/saveuserdictionarycallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/saveuserdictionarycallback/llms-full.txt

---

### Description

Callback function for saving a user dictionary via [TXTextControl.Proofing.saveUserDictionary](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol-proofing/saveuserdictionary-method/llms-full.txt).

### Syntax

```javascript
function(<string> name, <string[]> words)
```

### Examples

The following example demonstrates `SaveUserDictionaryCallback` in a practical document-editing workflow. Callback function for saving a user dictionary via TXTextControl.Proofing.saveUserDictionary.

```javascript
function saveUserDictionaryCallback(name, words) {
    console.log("Callback values:", { name, words });
}

function useSaveUserDictionaryCallback(proofing) {
    proofing.saveUserDictionary("QuarterlyReport", saveUserDictionaryCallback);
}
```

---

## Nearby

- **Previous:** [SaveDocumentResultCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/savedocumentresultcallback/llms-full.txt)
- **Next:** [Section Object](https://docs.textcontrol.com/ds-server/reference/javascript/section/llms-full.txt)
