> ## 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.

# CreateEmbeddedLanguage Method of the TextRecognitionParams Object

This method creates a recognition language from an existing one. This language can then be assigned to the [**ITextRecognitionParams::Language**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams.md#language) property.

You can create a simple or group language depending on the specified type. For example, you can create a simple language on the base of the English language, change some its parameters, and then use it for recognition of a field.

## Syntax

```vb Visual Basic .NET theme={null}
Function CreateEmbeddedLanguage( _
  type As LanguageTypeEnum, _
  prototype As Language _
) As Language
```

```cpp C++ theme={null}
HRESULT CreateEmbeddedLanguage(
  LanguageTypeEnum type,
  ILanguage*       prototype,
  ILanguage**      result
);
```

## Parameters

**type**

\[in] This variable specifies the type of the created language: simple or group. See the descriptions of the [**LanguageTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/languagetypeenum.md) constants.

**prototype**

\[in] This variable refers to the [**Language**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language.md) object, which should be used as a prototype for the new language creation. This language must have the same type as specified in the *type* parameter. You may pass NULL as the value of this parameter, in which case the default **Language** object of the type specified will be created.

**result**

\[out, retval] A pointer to the [**ILanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language.md)**\*** variable that receives the interface pointer for the created language.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**TextRecognitionParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams.md)

[Setting Up Recognition Languages](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/settinguprecognitionlanguages.md)
