After World War II , a Republic of Korea ( ROK ) was set up in the southern half of the Korean Peninsula while a Communist-style government was installed in the north ( the DPRK ) .