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

# SetPredefinedTextLanguage Method of the RecognizerParams Object

This method sets the language of recognition to be one of the predefined ABBYY FineReader Engine languages. It affects the value of the [IRecognizerParams::TextLanguage](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams#textlanguage) property.

## Syntax

### C++

```cpp theme={null}
HRESULT SetPredefinedTextLanguage( BSTR Name );
```

### C\#

```csharp theme={null}
void SetPredefinedTextLanguage( string Name );
```

### Visual Basic .NET

```vb theme={null}
Sub SetPredefinedTextLanguage(Name As String)
```

## Parameters

Name

\[in] This variable is the internal name of one of the ABBYY FineReader Engine predefined languages. This name should be one from the [list of ABBYY FineReader Engine predefined languages](/fine-reader/engine/specifications/predefined-languages). This parameter may also contain several language names separated with commas, for example, "English,French,German".

## Return values

If the predefined language you are trying to set is not available, or the language with this name is not supported, the E\_INVALIDARG error code is returned. This method may also return the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

Availability of this or that predefined language depends on the availability of the corresponding modules in the set of ABBYY FineReader Engine modules.

## See also

[IRecognizerParams::TextLanguage](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams#textlanguage)

[Working with Languages](/fine-reader/engine/guided-tour/advanced-techniques/working-with-languages)
