M&B: Bannerlord 1.2.10
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.ProfanityChecker Class Reference

Public Types

enum  ProfanityChechkerType {
  FalsePositive ,
  FalseNegative
}
 

Public Member Functions

 ProfanityChecker (string[] profanityList, string[] allowList)
 
bool IsProfane (string word)
 
bool ContainsProfanity (string text, ProfanityChechkerType checkType)
 
string CensorText (string text)
 

Member Enumeration Documentation

◆ ProfanityChechkerType

Enumerator
FalsePositive 
FalseNegative 

Constructor & Destructor Documentation

◆ ProfanityChecker()

TaleWorlds.Library.ProfanityChecker.ProfanityChecker ( string[] profanityList,
string[] allowList )

Member Function Documentation

◆ IsProfane()

bool TaleWorlds.Library.ProfanityChecker.IsProfane ( string word)

◆ ContainsProfanity()

bool TaleWorlds.Library.ProfanityChecker.ContainsProfanity ( string text,
ProfanityChechkerType checkType )

◆ CensorText()

string TaleWorlds.Library.ProfanityChecker.CensorText ( string text)