#-*-Mode: perl;-*- eval "\$opt_$1=\$2" while $ARGV[0] =~ /^(\w+)=(.*)/ && shift; print "
Words are from the Random House Dictionary, 2nd ed. Word frequencies are weighted by the frequencies in the Brown corpus (Francis & Kucera). "; if (defined($opt_zero)) { printf("
Counting 0 freqs in Brown as $opt_zero\n");
}
$vowels = "aAcCeEioORuUVWyY";
while ($line = $nTypes different $name.\n\n";
print " This report was generated by
a Perl programme.
";
\n";
print "
\n";
print "\n";
}
sub bump {
local(*table, $key, $value) = @_;
if (defined($table{$key})) {
$table{$key} += $value;
}
else {
$table{$key} = $value;
}
}
sub eg {
local(*table, $key) = @_;
if (!defined($table{$key})) {$table{$key} = $sp;}
else {
$examples = "$table{$key},$sp";
if (length($examples) < 50) {$table{$key} = $examples;}
}
}
print "
\n";
for $item (@inventory) {
printf("Vowel Word Types Word Tokens Examples \n",
$item, $types{$item}, $tokens{$item});
}
print "%s %d %.1f $eg{$item}