The KEYWORDS: section contains some useful information. E.g. one could check if a generator is connected to an exciter by checking for component with the exciter keyword.
This could be implemented as a list or set of strings for each component class.