# Correction

    class Correction: NSObject

A single correction.
- `
  ### [init(type:text:)](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/Correction.md.txt#/c:objc(cs)MPPCorrection(im)initWithType:text:)

  ` Initializes a new `MPPCorrection` with the given type and text.

  #### Declaration

  Swift

      init(type: CorrectionType, text: String)

  #### Parameters

  |---|---|
  | `type` | The type of correction. |
  | `text` | The text associated with the correction. |

  #### Return Value

  An initialized `MPPCorrection`.
- `
  ### [text](https://developers.google.com/edge/api/mediapipe/swift/text/Classes/Correction.md.txt#/c:objc(cs)MPPCorrection(py)text)

  ` The text associated with the correction.

  #### Declaration

  Swift

      var text: String { get }

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

  ` The type of correction.

  #### Declaration

  Swift

      var type: CorrectionType { get }