• Stars
    star
    63
  • Rank 484,841 (Top 10 %)
  • Language
    Go
  • License
    MIT License
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A sanitization-based swear filter for Go.

gofuckyourself

GoDoc Go Report Card cover.run

A sanitization-based swear filter for Go.

Installing

go get github.com/JoshuaDoes/gofuckyourself

Example

package main

import (
	"fmt"

	swearfilter "github.com/JoshuaDoes/gofuckyourself"
)

var message = "This is a fûçking message with shitty swear words."
var swears = []string{"fuck", "shit"}

func main() {
	filter := swearfilter.New(false, false, false, false, false, swears...)
	swearFound, swearsFound, err := filter.Check(message)
	fmt.Println("Swear found: ", swearFound)
	fmt.Println("Swears tripped: ", swearsFound)
	fmt.Println("Error: ", err)
}

Output

> go run main.go
Swear found:  true
Swears tripped:  [fuck shit]
Error:  <nil>

License

The source code for gofuckyourself is released under the MIT License. See LICENSE for more details.

Donations

All donations are appreciated and help me stay awake at night to work on this more. Even if it's not much, it helps a lot in the long run!

Donate

More Repositories

1

pixel-tensor-audio-decompressor

Patches mixer_paths.xml on Pixel Tensor devices to decompress the digital PCM volume.
Go
39
star
2

autogo

An AutoIt interpreter and runtime package written in Go
Go
37
star
3

go-yggdrasil

Single file library for Mojang's Yggdrasil API written in Golang without extra dependencies
Go
15
star
4

miitomo-assetscraper

Scrapes Miitomo assets from a provided Miitomo asset manifest URL.
Go
7
star
5

twrp_device_google_bramble

C++
7
star
6

zPlayer

[Development Hiatus] The official repository for zPlayer, a Windows-only media player written in AutoIt aiming to provide a graphically clean and simple easy-to-use interface that users have come to expect from their favorite media players
AutoIt
7
star
7

clonehero-launcher

[Out Of Date] A custom launcher for Clone Hero that installs/updates the game for you pre-launch
Go
6
star
8

sudo

A sudo implementation for Windows written in Go
Go
6
star
9

TWLIt

Made for Windows using AutoIt, TWLIt is a GUI wrapper for WinterMute's fork of TWLTool featuring a sleek and clean interface to make your life as a DSi modder even easier than before.
AutoIt
6
star
10

libremedia

Object-oriented deduplicating multimedia protocol made for custom clients to consume, and a stock web app to go with it
Go
5
star
11

ppmAudio

A PPM audio extractor and a PPM-ready ADPCM audio encoder, all-in-one
Go
4
star
12

jdtoolbox

An interactive menu for Magisk's module installer with tools to alter Android
Go
4
star
13

Switch-SD

To help keep your Nintendo Switch's SD cards up to date with homebrew
4
star
14

bedrocksrv

A Go implementation of the Minecraft: Bedrock Edition server protocol
Go
4
star
15

google-assistant

A Google Assistant library written in Go
Go
4
star
16

duckduckgolang

Single file library for the DuckDuckGo API written in Golang without extra dependencies
Go
3
star
17

ffgoconv

This project has moved! Check the link here:
Go
3
star
18

android_external_reparted

Reparted: Dynamically applies a given reserved partition list to the partition table, bailing on error or doing nothing if already satisfied (designed for Android)
Go
2
star
19

bd-theme-widerembeds

Makes embeds in the chat area always full width.
CSS
2
star
20

spotigo

Single file library for accessing SpotigoWeb (currently not publicly accessible)
Go
2
star
21

PPMIt

A specialized parser for Flipnote Studio (DSi) animation files, PPMIt is a Windows-only PPM file parser written in AutoIt to determine all the data possible about a flipnote and display it to the user cleanly and simply
AutoIt
2
star
22

Minecraft-Offline

[Development Hiatus] Currently nothing more than experimental testing, the aim is to eventually provide a stable environment to download and launch any version of Minecraft that is officially hosted by Mojang and also launch modded versions of Minecraft with ease.
AutoIt
2
star
23

goscp-server

A Go implementation of the kSoft kSCP server protocol
Go
1
star
24

discord-userjoinannounce

A Discord bot created to announce user join/leave messages from a different server.
Go
1
star
25

go-soundcloud

Single file library for accessing SoundCloud metadata and audio URLs in Golang without extra dependencies
Go
1
star
26

libreplay

An implementation of some of the Google Play API calls
1
star
27

go-ppm

A Go library to parse Flipnote Studio animation files
Go
1
star
28

adpcm-go

An ADPCM library in Go, created by @bovarysme
Go
1
star
29

goeip

Single file library for Kealper's geoip utility written in Golang without extra dependencies
Go
1
star
30

pixel-tensor-audio-decompressor-module

Prebuilt extracted module for each update of the Magisk module Pixel Tensor Audio Decompressor. Made for import into Magisk Modules Alt Repo.
Shell
1
star