Class MotorDefaultContentFilters
java.lang.Object
com.chatmotorapi.api.experimental.MotorDefaultContentFilters
public class MotorDefaultContentFilters extends Object
Provides a list of default content filters for use with content filtering functionalities.
These predefined filters cover common categories of content that may require moderation
in various applications. This class facilitates easy integration of standard moderation
practices into applications using the content filtering API.
The filters included are:
PROFANITY- Filters out offensive or vulgar language.PERSONAL_IDENTIFIABLE_INFORMATION- Redacts or removes data that can identify individuals.HATE_SPEECH- Filters language that promotes hate or violence against specific groups.SEXUAL_CONTENT- Removes explicit sexual references and material.VIOLENCE- Censors descriptions or promotions of violent acts.SECURITY_SENSITIVE_CONTENT- Excludes details that could be used for harmful activities.COMMERCIAL_CONTENT- Filters out promotional content not relevant to the context.MISINFORMATION- Aims to identify and filter out false or misleading information.DRUG_RELATED_CONTENT- Removes content related to illegal drugs or abuse.POLITICAL_CONTENT- Filters politically charged messages where neutrality is required.
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMERCIAL_CONTENTFilter for content that contains commercial content.static List<String>DEFAULT_FILTERSList of default content filters.static StringDRUG_RELATED_CONTENTFilter for content that contains drug-related content.static StringHATE_SPEECHFilter for content that contains hate speech.static StringMISINFORMATIONFilter for content that contains misinformation.static StringPERSONAL_IDENTIFIABLE_INFORMATIONFilter for content that contains personal identifiable information.static StringPOLITICAL_CONTENTFilter for content that contains political content.static StringPROFANITYFilter for content that contains profanity.static StringSECURITY_SENSITIVE_CONTENTFilter for content that contains security-sensitive content.static StringSEXUAL_CONTENTFilter for content that contains sexual content.static StringVIOLENCEFilter for content that contains violence. -
Constructor Summary
Constructors Constructor Description MotorDefaultContentFilters() -
Method Summary
-
Field Details
-
PROFANITY
Filter for content that contains profanity.- See Also:
- Constant Field Values
-
PERSONAL_IDENTIFIABLE_INFORMATION
Filter for content that contains personal identifiable information.- See Also:
- Constant Field Values
-
HATE_SPEECH
Filter for content that contains hate speech.- See Also:
- Constant Field Values
-
SEXUAL_CONTENT
Filter for content that contains sexual content.- See Also:
- Constant Field Values
-
VIOLENCE
Filter for content that contains violence.- See Also:
- Constant Field Values
-
SECURITY_SENSITIVE_CONTENT
Filter for content that contains security-sensitive content.- See Also:
- Constant Field Values
-
COMMERCIAL_CONTENT
Filter for content that contains commercial content.- See Also:
- Constant Field Values
-
MISINFORMATION
Filter for content that contains misinformation.- See Also:
- Constant Field Values
-
DRUG_RELATED_CONTENT
Filter for content that contains drug-related content.- See Also:
- Constant Field Values
-
POLITICAL_CONTENT
Filter for content that contains political content.- See Also:
- Constant Field Values
-
DEFAULT_FILTERS
List of default content filters.
-
-
Constructor Details
-
MotorDefaultContentFilters
public MotorDefaultContentFilters()
-