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

False positive: "button" #69

Closed
imran-salim opened this issue Nov 15, 2023 · 0 comments · Fixed by #68
Closed

False positive: "button" #69

imran-salim opened this issue Nov 15, 2023 · 0 comments · Fixed by #68
Labels
bug Something isn't working

Comments

@imran-salim
Copy link
Contributor

Describe the bug

A substring of the word is inappropriately censored.

What do you see?

When censoring the string "button", the profanity detector censors a substring which results in "****on".

What do you expect to see?

When censoring the string "button", the profanity detector should identify the word as a false positive and leave it unchanged.

List the steps that must be taken to reproduce this issue

  1. Initialise a Go codebase
  2. Create a Go file with a main function
  3. Install the "github.com/TwiN/go-away" library
  4. Import the "fmt" package from the Go standard library
  5. Import the "github.com/TwiN/go-away" library
  6. Call the goaway.Censor function on the string "button" and use the fmt.Println function to output it to the terminal
  7. Run the code

Version

v1.6.12

Additional information

Reference to a similar issue: #66
PR for a fix: #68

@imran-salim imran-salim added the bug Something isn't working label Nov 15, 2023
@TwiN TwiN closed this as completed in #68 Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant