Text this: International capital flows and debt dynamics