Look out for the future, because you never know what it might bring…
Question #2084 posted on 12/19/2003 12:38 a.m.

Dear Readers:

A week or so ago, someone asked a question if there was a list of words in the english language, sorted by length. Such a list now exists:


Brought to by Grady Ward, 9 lines of perl, 10 minutes, and Yours Truly.

-- Misaneroth

For the curious, the perl script is:

@wordlist = ();
while($w = <>) {
next unless ($w =~ /^[a-zs]+$/);
push @{$wordlist[length($w)]}, $w;
foreach $c (@wordlist) {
foreach (sort @{$c}) { print; }