Knowing that you can define properties of an id/class like this
[id^="word-"]
But can you take that a step further and define the background-color based on the word that follows? For instance, if I called a bunch of classes: word-black, word-red, word-green, etc. Could I have one CSS class that finds the word after the "-" ie. black, red, green, etc.
Something like: [class^="word-"] {background-color = parsedClassName}