Class MessageOutputSpelling

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

public class MessageOutputSpelling
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Properties describing any spelling corrections in the user input that was received.
  • Constructor Details

    • MessageOutputSpelling

      public MessageOutputSpelling()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      The user input text that was used to generate the response. If spelling autocorrection is enabled, this text reflects any spelling corrections that were applied.

      Returns:
      the text
    • getOriginalText

      public String getOriginalText()
      Gets the originalText.

      The original user input text. This property is returned only if autocorrection is enabled and the user input was corrected.

      Returns:
      the originalText
    • getSuggestedText

      public String getSuggestedText()
      Gets the suggestedText.

      Any suggested corrections of the input text. This property is returned only if spelling correction is enabled and autocorrection is disabled.

      Returns:
      the suggestedText