sub featurescore {
# relative amount of support for given feature
- state $statspts = { y=>10, 'y x'=>10, a=>5, 'a x'=>5, j=>2, 'p j'=>2, p=>1 };
+ state $statspts = { y=>10, 'y x'=>10, a=>5, 'a x'=>5, j=>2, 'p j'=>2, 'p p'=>2, p=>1 };
my $rank = 0;
if (my $row = shift) {
if ($canihas) {
for ($row->{categories}) {
my $cell = $_ ? lc $_->[0] : '-';
- print '<th>', $cell;
+ printf '<th title="%s">%s', join(' + ', @$_), $cell;
}
print '<td>', map {