A while back I wrote a c# programm for parsing ksp config file with exactly this in mind, never came to the automation stage though, deleted everything by hand in the end... I could finish it, maybe even add some sort of autotagging, or just send you the sources if you like.