stephenhaunts/ProfanityDetector

Reverse Scunthorpe

PaulRReynolds opened this issue · 1 comments

Hi folks,

I'm building some software which auto-generates random 5 character 'joining' codes for a game, and I'm hoping to use this library to avoid any unfortunate words being generated for clients once in production.

For example, the auto-generated code "ARSED" should be avoided.

I understand that the library specifically avoids flagging this due to the Scunthorpe Problem, but is there a way of disabling this so it gets flagged up?

Thanks for a great library!

Paul

I think I may have uncovered a bug.

// Returns false
ContainsProfanity("ARSED")

// Returns true
ContainsProfanity("arsed")

For now I'm going to .ToLower() the string before I test which seems to be a decent workaround for me