Text this: Anomaly inflow, accidental symmetry, and spontaneous symmetry breaking