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
swear-free: A Go library for detecting and filtering swear words.
Installation
go get github.com/ohhhthatvarun/swear-free
Languages/Locale supported
English (En)
Usage
To get censored version of the text.
censoredText = swearFree.CensorWord("Your bitch ass text here")
fmt.Println(censoredText) // Your ***** *** text here
To change the censor character
swearFree.SetReplaceCharacter("#")
censoredText = swearFree.CensorWord("Your bitch ass text here")
fmt.Println(censoredText) // Your ##### ### text here