Text this: Unveiling Swelling and Erosion Dynamics