In the 18th and 19th centuries, many schools in English-speaking countries used corporal punishment as a means of discipline. English was commonly spoken by children in these regions. While there may have been instances where children were punished for speaking English in schools, it was not a widespread practice and would have differed between schools and regions.
Additionally, in the 20th century, some schools in English-speaking countries instituted English-only policies, which required students to speak only English while on school grounds. However, these policies were primarily enforced in areas with large immigrant populations as means of promoting language learning and integration rather than as a form of punishment.