Text this: Capital flows and the twin crises