Text this: Transition from illegal regimes under international law