Text this: Foundation of laser spectroscopy