---
title: "languageHypotheses(withMaximum:)"
framework: naturallanguage
role: symbol
role_heading: Instance Method
path: "naturallanguage/nllanguagerecognizer/languagehypotheses(withmaximum:)"
---

# languageHypotheses(withMaximum:)

Generates the probabilities of possible languages for the processed text.

## Declaration

```swift
@nonobjc func languageHypotheses(withMaximum maxHypotheses: Int) -> [NLLanguage : Double]
```

## Parameters

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

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