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

# GetWordRecognitionVariants Method of the Paragraph Object

This method returns a collection of variants of a word's recognition in the current position inside the text of a paragraph.

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, determined by the internal estimation mechanism.

## Syntax

### C++

```cpp theme={null}
HRESULT GetWordRecognitionVariants(
  int                        Position,
  IWordRecognitionVariants** Result
);
```

### C\#

```csharp theme={null}
IWordRecognitionVariants GetWordRecognitionVariants( int Position );
```

### Visual Basic .NET

```vb theme={null}
Function GetWordRecognitionVariants(Position As Integer) As IWordRecognitionVariants
```

## Parameters

Position

\[in] This variable contains the index of the character inside the paragraph. This index must be in the range from zero to the length of the paragraph (the [IParagraph::Length](/fine-reader/engine/api-reference/text-related-objects/paragraph#length) property). When the length of the paragraph is passed into this method, this property refers to the parameters that would have received the character if it were inserted at the end of the paragraph.

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

[Paragraph](/fine-reader/engine/api-reference/text-related-objects/paragraph)

[ICharParams::WordRecognitionVariants](/fine-reader/engine/api-reference/text-related-objects/charparams#wordrecognitionvariants)

[Using Voting API](/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api)
