You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 "therapeutic" and use the fmt.Println function to output it to the terminal
Run the code
Version
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
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
"github.com/TwiN/go-away"
library"fmt"
package from the Go standard library"github.com/TwiN/go-away"
librarygoaway.Censor
function on the string"therapeutic"
and use thefmt.Println
function to output it to the terminalVersion
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: