implementing color coded text inputs

color code text input fields according to
whether the candidate word is a primary, variant, or intrusion
dictionary member for a given test