Text this: A generalization of the dichromatic polynomial of a graph