Scunthorpe is a lightweight, customizable profanity filter built for GameMaker. It was created out of the need for a filter that could handle common leetspeak while still being clean, efficient, and easy to drop into any project.
-
Filters profanity only when the word appears on its own (e.g., ass in "an ass", but not "class" or "assassin").
-
Filters profanity no matter where it is in the string (e.g., fuck) which can be used to filter out slurs.
-
Detects basic character substitutions like:
|<→K|)→D@→A$→S7→T
// Initialize filter settings using the files in the directory "scunthorpe/en"
// NOTE: Censor symbol used: '*'
init_scunthorpe("scunthorpe/en");
// Filter string using scunthorpe
var _string = "you dumb @ss";
var _string_scunthorpe = string_scunthorpe(_string);
show_debug_message(_string_scunthorpe); // → "you dumb ***"- The original profanity list has been cleaned up by removing redundant variations and rare/uncommon terms, and expanded to include more modern or recently used terms.
- It can't figure out the meaning of the words, meaning this can't figure out if a message is sexual, hateful, violent, etc.
- This is not a perfect or highly optimized solution—it was made in my free time for a personal project when I couldn’t find one that fit my needs.
-
NOTE: Many of the words have been modified, removed, or grouped based on frequency and relevance.