Text this: Waveguide spectroscopy of thin films