MyersBriggs classifies people as either of two extremes on four different dimensions resulting in 16 distinct MyersBriggsTypes identified by four letter codes.
This script searches wiki for pages with type codes and reports them in groups. It doesn't handle the ambiguity of pages with multiple codes particularly well so read it with caution.
The search looks for words matching the regular expression (e|i)(s|n)(t|f)(j|p). Sometimes people substitute an x for dimensions where type is not strongly indicated. I tried including x as an alternative in each position but found I often matched xxxx, a term that is used on wiki just about as often as any type code. For extra credit write a RegularExpression that permits a single x to appear in any one of the positions of the type code. Entries to be judged on clarity and elegance. -- WardCunningham
There's a well known recipe for this at http://iis1.cps.unizar.es/Oreilly/perl/cookbook/ch06_18.htm, so entries should be neater than that to qualify.