fanf: (dotat)
[personal profile] fanf

Compare Wikipedia's table of the relative frequencies of initial letters in English.

$ dig axfr . @f.root-servers.net |
  perl -ne '
	next unless /^(([a-z])[a-z0-9-]+)[.][  ].*/;
	$label{$1} = 1; $letter{$2}++; $total++;
	END {
		for my $x (sort keys %letter) {
			my $p = 100.0*$letter{$x}/$total;
			printf "<tr><td>$x</td>
				<td align=right>%5.2f</td>
				<td><span style=\"
					display: inline-block;
					background-color: gray;
					width: %d;\">
				&nbsp;</span></td></tr>\n",
			    $p, 32*$p;
		}
	}'
a 5.24 
b 5.96 
c10.02 
d 2.45 
e 3.28 
f 2.43 
g 5.03 
h 1.78 
i 3.38 
j 1.14 
k 2.71 
l 3.74 
m 6.69 
n 4.26 
o 0.72 
p 5.68 
q 0.65 
r 2.81 
s 6.15 
t 6.02 
u 1.91 
v 2.66 
w 1.94 
x12.19 
y 0.41 
z 0.75 

Date: 2014-02-19 13:01 (UTC)
From: [identity profile] fluffymormegil.livejournal.com
On closer inspection, it appears to be some kind of interaction with the LJ theme I'm using, since if I paste just the table into an empty HTML file and open that with FF27 on Windows, it works nicely.

December 2025

S M T W T F S
 123456
78910111213
14151617181920
21222324 252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 2026-01-10 05:50
Powered by Dreamwidth Studios