Give them "instances" or "object names", where the key will have the desired behavior, like pronouns and so on..
For each type, one dictionary.
I would add with dictionary an array, maybe it turn things easy, but...
Check what key is being called with the word and change its color to the correspondent instance.
Something like this:
Condition: On word created;
Sub-Condition 1: Is instance (or object name) = "Pronouns";
Sub-Action 1: Change text color to red;
Sub-Condition 2: Is instance (or object name) = "Verb";
Sub-Action 2: Change text color to green;
Using an array within, you could check inside the array what word it was and setup accordingly its X,Y2.