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: "therapeutic" #66

Closed
titaneos opened this issue Nov 15, 2023 · 0 comments · Fixed by #67
Closed

False positive: "therapeutic" #66

titaneos opened this issue Nov 15, 2023 · 0 comments · Fixed by #67
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@titaneos
Copy link
Contributor

Describe the bug

A substring of the word is censored.

A workaround is to create a new profanity detector with a custom dictionary, in which the word is appended to the set of false positives.

What do you see?

When censoring the string "therapeutic", the profanity detector censors a substring which results in "the****utic".
The string "therapist" is listed as a false positive, but not "therapeutic".

What do you expect to see?

When censoring the string "therapeutic", 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 "therapeutic" and use the fmt.Println function to output it to the terminal
  7. Run the code

Version

No response

Additional information

No response

@titaneos titaneos added the bug Something isn't working label Nov 15, 2023
@TwiN TwiN added the good first issue Good for newcomers label Nov 15, 2023
@TwiN TwiN closed this as completed in #67 Nov 15, 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 good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants