Text this: Generalizations of the primitive element theorem