Research on Automatic Detection of Thesis Format Based on Rule Engine