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

# GetRecognitionVariants Method of the Word Object

This method returns a collection of variants of a word recognition. The method returns zero for non-printable characters (spaces, carriage returns, etc.) and characters that were not recognized but added to the text during explicit editing. Zero is also returned if the text was recognized by one of the previous ABBYY FineReader Engine versions. If the [IRecognizerParams::SaveWordRecognitionVariants](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams#savewordrecognitionvariants) property is set to FALSE the return collection contains one element; otherwise, the collection contains no less than one element and the variants are ordered from the best to the worst.

<Warning>
  The character coordinates are not stored for each word recognition variant. If you need the character coordinates for the first recognition variant, which was chosen as the recognition result, obtain the [CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams) object from the [Paragraph](/fine-reader/engine/api-reference/text-related-objects/paragraph) object.
</Warning>

## Syntax

### C++

```cpp theme={null}
HRESULT GetRecognitionVariants(
  IWordRecognitionVariants** Result
);
```

### C\#

```csharp theme={null}
IWordRecognitionVariants GetRecognitionVariants();
```

### Visual Basic .NET

```vb theme={null}
Function GetRecognitionVariants() As IWordRecognitionVariants
```

## Parameters

Result

\[out, retval] A pointer to IWordRecognitionVariants\* pointer variable that receives the interface pointer to the [WordRecognitionVariants](/fine-reader/engine/api-reference/text-related-objects/wordrecognitionvariants) output object.

## Return values

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

## See also

[Word](/fine-reader/engine/api-reference/text-related-objects/word)
