Skip to content
#

profanities

Here are 4 public repositories matching this topic...

Language: All
Filter by language
finnbear
finnbear commented Oct 9, 2020

The program

package main

import (
	"fmt"
	"github.com/TwinProduction/go-away"
)

func main() {
	test("shit")
	test("shiit")
	test("shiiiiiit")
}

func test(word string) {
	fmt.Printf("\"%s\" profane? %t\n", word, goaway.IsProfane(word))
}

prints

"shit" profane? true
"shiit" profane? false
"shiiiiiit" profane? false

I suggest you include a list of regexes

good first issue

Improve this page

Add a description, image, and links to the profanities topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the profanities topic, visit your repo's landing page and select "manage topics."

Learn more