> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenDictionaryExtension Method of the LanguageDatabase Object

This method provides access to the dictionary extension of the standard dictionary for the specified language. The path to the folder with dictionary extensions is defined by the [ILanguageDatabase::DictionaryExtensionsPath](/fine-reader/engine/api-reference/language-related-objects/languagedatabase#dictionaryextensionspath) property.

Dictionary extensions can be created in ABBYY FineReader, where they are called user dictionaries. They can only be created for languages which already have dictionary support.

After you have received the dictionary extension, you can edit it in the same way as a user dictionary via the [Dictionary](/fine-reader/engine/api-reference/language-related-objects/dictionary) object.

## Syntax

### C++

```cpp theme={null}
HRESULT OpenDictionaryExtension(
  LanguageIdEnum LanguageID,
  IDictionary**  Result
);
```

### C\#

```csharp theme={null}
IDictionary OpenDictionaryExtension( LanguageIdEnum LanguageID );
```

### Visual Basic .NET

```vb theme={null}
Function OpenDictionaryExtension(LanguageID As LanguageIdEnum ) As IDictionary
```

## Parameters

LanguageID

\[in] This parameter specifies the ID of the language, for which dictionary extension is to be opened. See the description of the [LanguageIdEnum](/fine-reader/engine/api-reference/enumerations/languageidenum) constants. If there is no dictionary extension file for the specified language, a new dictionary extension is created and corresponding Dictionary object is returned.

Result

\[out, retval] A pointer to the IDictionary\* pointer variable that receives the interface pointer of the [Dictionary](/fine-reader/engine/api-reference/language-related-objects/dictionary) object with dictionary extension.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

If you create a dictionary extension using ABBYY FineReader 11 or using another release of ABBYY FineReader Engine 12, you may need a special TXT file for opening this dictionary extension in the current release of ABBYY FineReader Engine. This TXT file is created automatically during dictionary extension creation and has the name \<language name>.txt. Copy this file to the folder with dictionary extensions.

## See also

[LanguageDatabase](/fine-reader/engine/api-reference/language-related-objects/languagedatabase)
