Listing 1.
Tastefulness indexes
Lincoln D. Stein
Rating Web Page Tastefulness with a Perl Agent
The Perl Journal, Summer 1997
  Tastefulness indexes

Information Index (II)
Basic measure of the word to link ratio, defined as:
II = 100 x (1 - (words inside links / total words in document))

Graphics Index (GI)
Measure of the graphics usage of a page, defined as:
GI = number IMG tags / number pages

Doodads Index (DI)
Measure of the number of applets, controls, and scripts, defined as:
DI = number of doodads / number pages

TutieFrutie Index (TFI)
Measure of how "colorful" a document is, defined as:
TFI = number of color changes / number of pages

Frames Index (FI)
Measure of the use of frames, defined as:
FI = number of frame tags

Cool! Index (C!I)
Measure of how excited a page is about itself, defined as:
C!I = 100 x ( exclamation marks + superlatives ) / total sentences

Crass Commercialism Index (CCI)
Indication of banner advertising on the page, defined as:
CCI = number of ads / number of pages
This program uses heuristics to count banner advertisements and may not always guess correctly.