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

# Language Object (ILanguage Interface)

This object represents a recognition language. This object contains properties reflecting language attributes, such as its external name, components and category. The recognition languages can be set for the whole project using the [**IProject::LanguageDatabase**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md#languagedatabase) property, or for particular Document Definition ([**IDocumentDefinition::DefaultLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md#defaultlanguage)) or its text block ([**ITextRecognitionParams::Language**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams.md#language)).

A language may be either simple (e.g. English, Russian) or compound (composed of several simple languages). See the **Type** property. The **Language** object exposes methods which cast it to a type-specific interface and thereby provide access to the extended attributes of a language of specific type.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| **DatatypeCategory** | [**DatatypeCategoryEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/datatypecategoryenum.md), read-only | Specifies the category of data for which the language is designed. |
| **ExternalName** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md) | Specifies the external name of the language. This name can be localized and used in user interface. |
| **InternalName** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the internal name of the language. It is this name that should be passed to the [**IPredefinedLanguages::FindLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/predefinedlanguages-findlanguage.md) method. |
| **LanguageCategory** | [**LanguageCategoryEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/languagecategoryenum.md), read-only | Indicates the category to which the recognition language belongs. You may use this property to organize languages in your user interface. |
| **LetterSet** | [**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the letter set of the recognition language. |
| **Type** | [**LanguageTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/languagetypeenum.md), read-only | Specifies the type of the recognition language. Recognition language can be simple (e.g. English, Russian), or be composed of several simple languages. |

## Methods

| **Name** | **Description** |
| - | - |
| [**AsSimpleLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language-assimplelanguage.md) | Returns the language as the [**SimpleLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/simplelanguage.md) object. If the language is not a simple language, NULL is returned. |
| [**AsGroupLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language-asgrouplanguage.md) | Returns the language as the [**GroupLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/grouplanguage.md) object. If the language is not a language composed of several simple languages, NULL is returned. |
| [**CopyFrom**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/copyfrom.md) | Initializes properties of the current object with values of similar properties of another object. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/Language.gif?s=0356c24173c4ef9d73287b444a3622b7)

## Output parameter

This object is the output parameter of the following methods:

* [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md), [**FindLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/predefinedlanguages-findlanguage.md) methods of the [**PredefinedLanguages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/predefinedlanguages.md) object
* [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) method of the [**GroupLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/grouplanguage.md) object
* [**CreateEmbeddedLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguage.md), [**CreateEmbeddedLanguageByDataType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguagebydatatype.md) methods of the [**TextRecognitionParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams.md) object

## Input parameter

This object is the input parameter of the following methods:

* [**CreateEmbeddedLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguage.md) method of the [**TextRecognitionParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams.md) object
* [**DetectOrientationByText**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageprocessingtools-detectorientationbytext.md) method of the [**ImageProcessingTools**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageprocessingtools.md) object

## See also

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

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

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
