Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

v0 source pure

Package safe screens short public texts, such as radio dedications, with no human review. A text must use plain chara...

Overview

Package safe screens short public texts, such as radio dedications, with no human review. A text must use plain characters, carry no link or phone number, and contain no blocked word or phrase, after folding accents, leet digits (0→o, 1→i, 3→e, 4→a, 5→s, 7→t) and repeated letters. Words match whole, without a final s, reversed, or glued back when split by - or ' ("fu-ck"); a run of single letters ("f u c k") reads as one word; a few unambiguous stems match inside any word. So "classic" or "grass" pass; the realm adds reports and automatic hiding for what a list cannot know.

Functions 3

func Blocked

1func Blocked(s string) bool
source

Blocked reports whether s holds a blocked word, phrase or stem.

func Note

1func Note(s string, max int) string
source

Note returns why s cannot be shown publicly ("" when it can). max is the longest text accepted, in characters.

func Slur

1func Slur(s string) bool
source

Slur reports whether s holds a racial or homophobic slur or a hate slogan: the check for titles, names and bios, where the full list would refuse real works (Sex Pistols, Bitches Brew).

Dependencies

Imports 1

/p/nym-alexiscolin000/gnoradio/safe/v0

Imported by indexer

Source Files 3