Closed
Description
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
- Initialise a Go codebase
- Create a Go file with a main function
- Install the
"github.com/TwiN/go-away"
library - Import the
"fmt"
package from the Go standard library - Import the
"github.com/TwiN/go-away"
library - Call the
goaway.Censor
function on the string"button"
and use thefmt.Println
function to output it to the terminal - Run the code
Version
v1.6.12