Instance Method

languageHypothesesWithMaximum:

Generates the probabilities of possible languages for the processed text.

Declaration

- (NSDictionary<NLLanguage,NSNumber *> *)languageHypothesesWithMaximum:(NSUInteger)maxHypotheses;

Parameters

maxHypotheses

The maximum number of languages to return.

Return Value

A dictionary mapping languages with their probabilities, up to maxHypotheses languages.

See Also

Determining the Language

+ dominantLanguageForString:

Finds the most likely language of a piece of text.

- processString:

Analyzes the piece of text to determine its dominant language.

dominantLanguage

The most likely language for the processed text.

- reset

Resets the recognizer to its initial state.