Very much work-in-progress. Everything subject to change.
cd apertium-cat-ita
../path/to/apertium-stats/tally-source.pl
which will yield JSON akin to
{
"apertium-cat-ita.cat-ita.dix" : {
"kind" : "dix",
"size" : {
"bytes" : 4770505,
"lines" : 46442
},
"stems" : 46066
},
"apertium-cat-ita.cat-ita.t1x" : {
"kind" : "transfer",
"macros" : 17,
"rules" : 116,
"size" : {
"bytes" : 378149,
"lines" : 11251
}
}
}