Text this: Extension of Classical Thermodynamics to Nonequilibrium Polarization