corpus formatter