---
title: "languageHypothesesWithMaximum:"
framework: naturallanguage
role: symbol
role_heading: Instance Method
path: "naturallanguage/nllanguagerecognizer/languagehypotheseswithmaximum:"
---

# languageHypothesesWithMaximum:

Generates the probabilities of possible languages for the processed text.

## Declaration

```occ
- (NSDictionary<NSString *,NSNumber *> *) languageHypothesesWithMaximum:(NSUInteger) maxHypotheses;
```

## Parameters

- `maxHypotheses`: The maximum number of languages to return.

## Mentioned in

Identifying the language in text

## Return Value

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

## See Also

### Determining the language

- [dominantLanguage(for:)](naturallanguage/nllanguagerecognizer/dominantlanguage(for:).md)
- [processString(_:)](naturallanguage/nllanguagerecognizer/processstring(_:).md)
- [dominantLanguage](naturallanguage/nllanguagerecognizer/dominantlanguage.md)
- [reset()](naturallanguage/nllanguagerecognizer/reset().md)
