The invention discloses a program 
readability analysis method based on a 
WordNet, and belongs to the field of 
software engineering. The program 
readability analysis method based on the 
WordNet comprises the following steps that (1) each 
method body is traversed according to a 
package name-class name-method name 
project structure, and is labeled in a 
package name-class name-method name mode; (2) warning annotations and TODO annotations are removed, wherein each warning 
annotation usually appears in a testing case and is used for warning a 
programmer that a certain serious consequence can happen, each TODO 
annotation indicates a piece of work, and the 
programmer thinks that the work should be done, but the work is not done at present for some reasons; (3) the annotations are divided into short annotations and long annotations; (4) the long annotations are preprocessed, and subject terms of the long annotations are extracted through the 
WordNet; (5) subject terms of codes are extracted from code segments mapped by the annotations through the WordNet; (6) a program 
readability analysis tree is generated for a whole project, and final 
analysis data are formed. According to the program readability 
analysis method based on the WordNet, a later-period maintainer can conveniently comprehend an unfamiliar project, and the program readability analysis method based on the WordNet can be used for maintenance and development of 
software.