MessageInputOptionsSpelling

public struct MessageInputOptionsSpelling : Codable, Equatable

Spelling correction options for the message. Any options specified on an individual message override the settings configured for the skill.

  • Whether to use spelling correction when processing the input. If spelling correction is used and auto_correct is true, any spelling corrections are automatically applied to the user input. If auto_correct is false, any suggested corrections are returned in the output.spelling property. This property overrides the value of the spelling_suggestions property in the workspace settings for the skill.

    Declaration

    Swift

    public var suggestions: Bool?
  • Whether to use autocorrection when processing the input. If this property is true, any corrections are automatically applied to the user input, and the original text is returned in the output.spelling property of the message response. This property overrides the value of the spelling_auto_correct property in the workspace settings for the skill.

    Declaration

    Swift

    public var autoCorrect: Bool?
  • Initialize a MessageInputOptionsSpelling with member variables.

    Declaration

    Swift

    public init(
        suggestions: Bool? = nil,
        autoCorrect: Bool? = nil
    )

    Parameters

    suggestions

    Whether to use spelling correction when processing the input. If spelling correction is used and auto_correct is true, any spelling corrections are automatically applied to the user input. If auto_correct is false, any suggested corrections are returned in the output.spelling property. This property overrides the value of the spelling_suggestions property in the workspace settings for the skill.

    autoCorrect

    Whether to use autocorrection when processing the input. If this property is true, any corrections are automatically applied to the user input, and the original text is returned in the output.spelling property of the message response. This property overrides the value of the spelling_auto_correct property in the workspace settings for the skill.

    Return Value

    An initialized MessageInputOptionsSpelling.