Text this: Preventing currency crises in emerging markets