關鍵字:小學堂、數學學習網站、數學文字應用題 ;「Ziyou Emathschool」is a mathematics learning website designed specifically for elementary schoolchild. The website contains numerous computer programs which can generate mathematics problems selected by teachers, parents or students. Users are free to select problems from different editions, grades, problem units or difficulty degrees to put into a problem sheet so as to facilitate student′s practice. Among all mathematics problems, text-based mathematics problems are always of great importance. Those problems exist for all grades and emphasize highly on logic and language comprehension. Aa a result, Ziyou Emathschool also provide some text-based mathematics problems in its computer program database. However, it is always a difficult research topic to use computer program to generate text-based mathematics problems. The thesis attempts to provide a feasible method to generate text-based problems specifically related to the topics such as fraction, decimal fraction and unit transform. The current study uses template-like syntax on the data file to describe texts and numbers to be shown in the problems. Those problems will always comply with mathematics curriculum regulated by education department. Besides syntax, we also design a series of computer programs so that mathematics problem generator in Ziyou Emathschool can generate text-based mathematics problems successfully after reading the data file.