Skip to main content

profanity_rule

Function
This function is defined in the policy module.
Create a rule to block profanity.

Signature

def profanity_rule(words: Vec<String>) -> PolicyRule

Parameters

words
Vec<String>
required
No description available.

Returns

Returns
PolicyRule
The result of the operation.

Uses

  • description
  • action
  • keyword

Source

View on GitHub

praisonai/src/policy/mod.rs at line 426