In the thesis , we try to design a chinese mathematical text problem generator for students in elementary school . To construct a meaningful chinese text sentence as the mathematical problem , we , first , design a series of datafiles for different purposes . Then , we define many reserved words and rules to construct the mathematical problems , Finally , we have some preliminary results to show our design .