Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse Scunthorpe #18

Open
PaulRReynolds opened this issue Apr 19, 2021 · 1 comment
Open

Reverse Scunthorpe #18

PaulRReynolds opened this issue Apr 19, 2021 · 1 comment

Comments

@PaulRReynolds
Copy link

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

@PaulRReynolds
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant