Class MessageInputOptionsSpelling

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v2.model.MessageInputOptionsSpelling
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class MessageInputOptionsSpelling
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Spelling correction options for the message. Any options specified on an individual message override the settings configured for the skill.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a MessageInputOptionsSpelling builder
    • suggestions

      public Boolean suggestions()
      Gets the 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.

      Returns:
      the suggestions
    • autoCorrect

      public Boolean autoCorrect()
      Gets the 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.

      Returns:
      the autoCorrect