Another new idea (I'm thinking around things at the moment to make sure that I don't get into any problems by making the first release not capable of handling stuff we want in later releases without major re-works).
The idea this time is an "army collection helper". Basically, if a race definition is suitably annotated with additional data then the collection helper should be able to tell you how many models you need. In many cases it is easy enough to tell anyway (20 spearmen = 20 models with spears), but some situations are a bit more flexible (mixed units like the Lothern Sea Guard for the High Elves mix bows and spears, so 20 spearmen and 20 Lothern Guard-like troops generally requires 30 models with spears).
The main problem I can see at the moment with the current data files is that we treat a unit as a thing with a stat line. While that is true most of the time, it isn't always the case. The down-side is that I think I'm going to need to break the initial schema before we release v0.1. The up-side is that my planned "sub-units" idea for Apocalypse-like games and other multi-type units (e.g. goblinoids surrounding an ogre) should actually work without it having the odd situation of a pure container unit that has to have a stat line!