I have looked at the code and as far as I can tell all it does
is to select a first name and last name completely at random
from the file.
I have therefore not spent much time on the continent/country part
of the database as I guess this will (or might) be something
for the future. Having said this I have added a few more 'probabilities'
would suggest that if it is used in future the number format should
be a percentage 0-100 as opposed to a fraction (easier to understand &
I have added a lot more names in a lot more sections but it is
still 'work in progress'.
At some stage I feel the code will need to be looked at/altered if only
to take account of the soldiers sex (even for v1.0). At this stage whoever
it might consider including 'origin' and using firstname/lastname
from the same origin.
I notice from the code that where the expected 'tree like' data structure is
there is no mention of the 'sex' group!? So this was possibly changed/added
It seems to me that at some stage the question 'Where is this soldier from?'
will need to
be considered. . .
There are several possibile answers:-
1) (V.Simple) Who cares? Just use a random first & lastname from the DB
(almost as is, will still
need to consider sex). (V1.0?)
2) (Straightforward) Country of origin = 'origin' from first part of
peoplenames file. 'Origin' in file will
need to be updated to be = 'country' instead of origin. i.e 'Germany'
instead of 'German', 'U.K' instead of 'English'.
'Continents' part of file becomes redundant.
3) (Complex) Country = 'country' from 'Continents' part of peoplenames file.
This will then need to be tied
back to 'origin' using 'probabilities' to determine name. This is
presumably what was originally
conceived by the files creator.
Once again hope this has helped.
I will continue trying to get my head around C#2.0 and XMA and will
hopefully be able to help more in future.
peopleNames.xml 78.39K 274 downloads