Text this: Understanding the nature of the optical emission in gamma-ray bursts