Lably
Skip to content

Wordfilter

Script used to censor words or phrases on the internet

  • 7 min read
  • 5 chapters

Related on Lably

Through Software and Character (computing)

The most basic wordfilters search only for specific strings of letters, and remove or overwrite them regardless of their context. More advanced wordfilters make some exceptions for context (such as filtering "butt" but not "butter"), and more advanced wordfilters may use regular expressions.

Functions

Wordfilters can serve any of a number of functions.

Removal of vulgar language

A swear filter, also known as a profanity filter, obscenity filter or language filter is a software subsystem which modifies text to remove words deemed offensive by the administrator or community of an online forum. Swear filters are common in custom-programmed chat rooms and online video games, primarily MMORPGs. This is not to be confused with content filtering, which is usually built into internet browsing programs by third-party developers to filter or block specific websites or types of websites. Swear filters are usually created or implemented by the developers of the Internet service.

Most commonly, wordfilters are used to censor language considered inappropriate by the operators of the forum or chat room. Expletives are typically partially replaced, completely replaced, or replaced by nonsense words. This relieves the administrators or moderators of the task of constantly patrolling the board to watch for such language. This may also help the message board avoid content-control software installed on users' computers or networks, since such software often blocks access to Web pages that contain vulgar language.

Filtered phrases may be permanently replaced as it is saved (example: phpBB 1.x), or the original phrase may be saved but displayed as the censored text. In some software users can view the text behind the wordfilter by quoting the post.

Swear filters typically take advantage of string replacement functions built into the programming language used to create the program, to swap out a list of inappropriate words and phrases with a variety of alternatives. Alternatives can include:

  • Grawlix nonsense characters, such as !@#$%^&*
  • Replacing a certain letter with a shift-number character or a similar looking one.
  • Asterisks or number signs (* or #) of either a set length, or the length of the original word being filtered. Alternatively, posters often replace certain letters with an asterisk.
  • Popular minced oaths such as "heck", "frick", or "darn", or invented minced oaths such as "flum" or "flek".
  • Family friendly words or phrases, or euphemisms, like "LOVE" or "I LOVE YOU", or completely different words which have nothing to do with the original word.
  • Deletion of the post. In this case, the entire post is blocked and there is usually no way to fix it.
  • Nothing at all or full blocks (█). In this case, the offending word is deleted or replaced with the full block symbol repeated in the length of the obscenity.

Some swear filters do a simple search for a string. Others have measures that ignore whitespace, and still others go as far as ignoring all non-alphanumeric characters and then filtering the plain text. This means that if the word "you" was set to be filtered, "y o u" or "y.o!u" would also be filtered.

Cliché control

Clichés—particular words or phrases constantly reused in posts, also known as "memes"—often develop on forums. Some users find that these clichés add to the fun, but other users find them tedious, especially when overused. Administrators may configure the wordfilter to replace the annoying cliché with a more embarrassing phrase, or remove it altogether.

Vandalism control

Internet forums are sometimes attacked by vandals who try to fill the forum with repeated nonsense messages, or by spammers who try to insert links to their commercial web sites. The site's wordfilter may be configured to remove the nonsense text used by the vandals, or to remove all links to particular websites from posts.

Lameness filter

Lameness filters are text-based wordfilters used by Slash-based websites (such as textboards and imageboards) to stop junk comments from being posted in response to stories. Some of the things they are designed to filter include:

  • Too many capital letters
  • Too much repetition
  • ASCII art
  • Comments which are too short or long
  • Use of HTML tags that try to break web pages
  • Comment titles consisting solely of "first post"
  • Any occurrence of a word or term deemed (by the programmers) to be offensive/vulgar

Government censorship

The Chinese government censors some internet content, which is reflected in the chat feature of some online games. In 2017, a paper looked at over 180,000 unique blacklisted keywords in mobile games. Content policy plans are required to be submitted to regulators, but there is no centralized 'banned' keyword list provided by federal or even provincial authorities, so every developer and publisher may or may not allow different "edge cases". The flagging of innocuous language because of regex-based keyword lists is omnipresent whether in Latin or Chinese characters. This has prompted a Chinese internet slang culture that leans heavily on puns and intentional misspelling, such as the Baidu 10 Mythical Creatures.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Computing and communication