Skip to content

False positive: "button" #69

Closed
Closed
@imran-salim

Description

@imran-salim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions