Text this: An Algebraic Approach to Light–Matter Interactions