Before 1945, other than a small Japanese-speaking population, most of the population of Taiwan were Han Chinese, who spoke Taiwanese Hokkien or Hakka, with a minority of Taiwanese aborigines, who spoke Formosan languages. When the Kuomintang retreated to the island after losing the Chinese Civil War in 1949, they brought a substantial influx of speakers of Northern Chinese (and other dialects from across China), and viewed the use of Mandarin as part of their claim to be a legitimate government of the whole of China. Education policy promoted the use of Mandarin over the local languages, and was implemented especially rigidly in elementary schools, with punishments and public humiliation for children using other languages at school.