Text this: Unified differentiable learning of electric response