Algorithm
public enum Algorithm : String, CaseIterable
Encapsulates specific moderation capabilities. Consumed by Moderator.init(...)
.
-
Original DragonflAI algorithm release. We recommend you use a newer release.
Declaration
Swift
case nudity1
-
Latest DragonflAI algorithm release.
Declaration
Swift
case nudity7
-
This algorithm’s identifying name
Declaration
Swift
public var name: String { get }
-
A default
AlgorithmConfig
as used by theModerator
initialiser.blockThreshold: 70
where applicable
Declaration
Swift
public var defaultConfig: AlgorithmConfig { get }
-
A dictionary of algorithms which have resources installed in the app bundle.
Declaration
Swift
public static func installedAlgorithms() -> [String : Algorithm]