Skip to content

This is a go library to censor all the swear words in a given text.

License

Notifications You must be signed in to change notification settings

OhhhThatVarun/swear-free

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • To change the locale (Future)
swearFree.SetLocale("Es")

About

This is a go library to censor all the swear words in a given text.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages