How Profanity Filters Work, and Why They Block Scunthorpe
How word filters catch disguised swear words like sh1t or f.u.c.k, why they block innocent words such as Scunthorpe, and how to moderate text more fairly.

How Profanity Filters Work, and Why They Block Scunthorpe
Anyone who runs a forum, a chat, a comment section, a classroom tool or a game with usernames eventually needs to deal with offensive language. A list of banned words seems like the obvious answer, but it fails in two directions: it misses words that people disguise, and it blocks innocent words by accident. The free Profanity and Banned Word Filter tackles both, and this guide explains how.
Disguised spellings
People who want to get past a filter rarely type the word plainly. They replace letters with look-alike numbers and symbols (sh1t, b!tch, h3ll), insert dots, spaces or asterisks between letters (f.u.c.k), repeat letters, or mix upper and lower case. A naive filter that looks for exact strings misses all of these.
The filter handles common tricks by building a flexible pattern for each banned word: every letter may be written as itself or a common substitute, such as a as @ or 4, i as 1 or !, o as 0 and s as $ or 5, letters may repeat, and up to two separator characters are allowed between letters. That catches most casual disguises. Determined users will always invent new spellings, so treat any filter as a first line of defence.
The Scunthorpe problem
In 1996, residents of the English town of Scunthorpe found they could not register with a major internet service, because the town's name contains a four-letter word. Filters that match strings inside words still cause this: they block place names, surnames like Dickens, and ordinary words such as cocktail, assess, grape or analysis.
Matching whole words only, so that a banned word must stand on its own, prevents most of these mistakes. The filter does this by default, and an allow list handles the rest: add any word that keeps being flagged wrongly. The trade-off is that whole-word matching misses offensive words joined to others, so some communities turn it off and rely on a longer allow list instead.
Choosing what to block
The tool includes a short list of strong English profanities and an optional list of milder words. What counts as offensive depends on your audience: mild words may be fine for adults and unacceptable on a children's platform. You can add your own words, for example slurs relevant to your community, a competitor's brand name, spoilers or confidential project names, and use only your list.
How to mask
Different situations call for different masking:
- First letter kept (f***) keeps text readable for adults.
- Asterisks or removal suit children's content.
- Grawlix (@#$%) is the cartoon tradition.
- Replacement with a word such as [removed] makes moderation visible to readers.
Filters need people
Context changes meaning. A word can be an insult, a quotation in a news story, a reclaimed identity term or part of a medical discussion. Automated filters also tend to treat some dialects and communities unfairly. Use filtering to catch the obvious cases and to flag content for review, write clear community guidelines, and keep a human in the loop for decisions that matter, such as banning users.
Usernames and short text
Usernames are a special case, because they have no spaces between words. Whole-word matching cannot see a banned word hidden inside a longer name, so for username checks it is often better to turn whole-word matching off and rely on a carefully maintained allow list.
Step by step
- Paste the text you want to check.
- Choose the word list: strong, strong and mild, or only your own words.
- Add banned words and allowed exceptions.
- Choose disguise matching and whole-word matching.
- Pick a masking style and copy the filtered text.
Privacy
Text is filtered in your browser and never uploaded or stored.



