# LanguagePrediction

    class LanguagePrediction: NSObject

- `
  ### [init(languageCode:probability:)](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/LanguagePrediction.md.txt#/c:objc(cs)MPPLanguagePrediction(im)initWithLanguageCode:probability:)

  ` Initializes a new `LanguagePrediction` with the given language code and probability.

  #### Declaration

  Swift

      init(languageCode: String, probability: Float)

  #### Parameters

  |---|---|
  | `languageCode` | The i18n language / locale code for the prediction. |
  | `probability` | The probability for the prediction. |

  #### Return Value

  An instance of `LanguagePrediction` initialized with the given language code and probability.
- `
  ### [languageCode](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/LanguagePrediction.md.txt#/c:objc(cs)MPPLanguagePrediction(py)languageCode)

  ` The i18n language / locale code for the prediction.

  #### Declaration

  Swift

      var languageCode: String { get }

- `
  ### [probability](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/LanguagePrediction.md.txt#/c:objc(cs)MPPLanguagePrediction(py)probability)

  ` The probability for the prediction.

  #### Declaration

  Swift

      var probability: Float { get }