Text this: Polarization of light in nonlinear optics