<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 12.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NaturalLanguage",
  "identifier" : "/documentation/NaturalLanguage/NLLanguageRecognizer/languageHypotheses(withMaximum:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Natural Language",
      "NaturalLanguage"
    ],
    "preciseIdentifier" : "s:So20NLLanguageRecognizerC15NaturalLanguageE18languageHypotheses11withMaximumSDySo0A0aSdGSi_tF"
  },
  "title" : "languageHypotheses(withMaximum:)"
}
-->

# languageHypotheses(withMaximum:)

Generates the probabilities of possible languages for the processed text.

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

## Parameters

`maxHypotheses`

The maximum number of languages to return.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)