Not quite. The city name maps would still be in effect (unless we wanna get rid of them - time for a vote?) and will work the same as before.So, if I understand it correctly, default names would be defined for the plots, and then exceptions for some civs on founding and/or taking the city later.
But if no entry can be found in the city name map for the Civ in question, then the code will look in the data structure (the "new setup") for an entry for that plot. If one is found then the city will be named the "default" name.
If the city changes hands, on the other hand, then the code will only look in the data structure for a tile entry. If there is a entry for that Civ in the dictionary for that tile, then that will be used. Otherwise the city name will change to the default name. Unless there is a special case defined for that tile (on another line) specifying what name that Civ's city will get depending on the previous owner.
Phew!
My script will give us all the options we need - its just a matter of choosing the entry we wanna keep and delete the rest. Its still a lot of qualified work, so I will need help with this...The code would be a lot less redundant and the problem I had before, completely solved. The question is to find the best default name for each plot, so less exceptions have to be made.