ToneCategory

public struct ToneCategory : Codable, Equatable

The category for a tone from the input content.

  • An array of ToneScore objects that provides the results for the tones of the category.

    Declaration

    Swift

    public var tones: [ToneScore]
  • The unique, non-localized identifier of the category for the results. The service can return results for the following category IDs: emotion_tone, language_tone, and social_tone.

    Declaration

    Swift

    public var categoryID: String
  • The user-visible, localized name of the category.

    Declaration

    Swift

    public var categoryName: String