# Javascript: TXTextControl.Proofing.getDictionaryList Method

> Retrieves a list of the names of all dictionary files on the server.

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

---

### Description

Retrieves a list of the names of all dictionary files on the server.

### Syntax

```javascript
<void> TXTextControl.Proofing.getDictionaryList(<GetDictionaryListCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| callback | The callback function which is called as soon as the dictionary list has been received from the server. |

### Examples

The following example demonstrates `TXTextControl.Proofing.getDictionaryList` in a practical document-editing workflow. Retrieves a list of the names of all dictionary files on the server.

```javascript
function inspectDictionaryList(proofing) {
    proofing.getDictionaryList(
        function(dictionaries) {
            if (!dictionaries) {
                console.warn("No dictionary info was returned.");
                return;
            }
            
            console.log("get dictionary list result:", dictionaries);
        }
    );
}
```

---

## Nearby

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