The structure and process of grammar teaching are the basic problems of grammar teaching.Many scholars have elaborated the structural components,structure types and process types of Chinese grammar teaching,which we consider to be"ideal".At the same time,according to the Chinese Teaching Database,we can carry out"real"research,and on the basis of this,make a comparative analysis of the two.This study can be regarded as a study of the rules of Chinese teaching by means of educational data mining.The main conclusions are as follows:(1)I(introduction),E(explanation),P(practice),and S(summary)constitute a set of components in grammar teaching;P is a must,with both strong grounds and solid evidence.(2)The structure type is categorical,and the application of IEPS structure is the most prominent.(3)[I-E-P]and[I-E-P-S]can be seen as prototype process types and several other types can be considered variant types.From the analysis of association relations,we can see that the practical applications of[E-P],[I-E]and[I-P]subprocesses are highlighted.Item S may be a parameter that affects the effect of grammar teaching,which needs experimental verification.