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

# AddRecognitionLanguage Method of the Country Object

This method adds a recognition language to the country configuration. If this language is new for the current invoice document, it is also added at the end of the [**InvoiceLanguages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/invoicelanguages.md) collection as a new [**InvoiceLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/invoicelanguage.md).

> [!NOTE]
>
> A language should be added only once. Adding a language that is already added causes an error.

## Syntax

```vb Visual Basic .NET theme={null}
Function AddRecognitionLanguage(LanguageName As String)
```

```cpp C++ theme={null}
HRESULT AddRecognitionLanguage(
  BSTR LanguageName
);
```

## Parameters

**LanguageName**

\[in] One of the predefined internal language names. See [Predefined Languages in ABBYY FlexiCapture SDK](https://docs.abbyy.com/flexi-capture/sdk/specifications/langnames.md).

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

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

[Predefined Languages in](https://docs.abbyy.com/flexi-capture/sdk/specifications/langnames.md) [ABBYY FlexiCapture SDK](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md)
