TriggerAnalysisResult

public class TriggerAnalysisResult : CustomStringConvertible, Codable

Result of an analysis by the TriggerWordsAnalyser.

  • Declaration

    Swift

    public var description: String { get }
  • Get a list of triggers for this result.

    Declaration

    Swift

    public func getTriggers() -> [TriggerType]

    Return Value

    The triggers identified in the text.

  • Check if there is at least one trigger detected in this result.

    Declaration

    Swift

    public func containsTriggerWords() -> Bool

    Return Value

    true if there is at least one trigger match.