Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program readability analysis method based on WordNet

A method of analysis and readability, applied in the direction of program control devices, etc.

Active Publication Date: 2014-07-16
YANGZHOU UNIV
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a WordNet-based program readability analysis method to solve the problem of program readability analysis, which is conducive to the later maintenance personnel's understanding of unfamiliar projects

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Program readability analysis method based on WordNet
  • Program readability analysis method based on WordNet
  • Program readability analysis method based on WordNet

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] Below in conjunction with accompanying drawing, the technical scheme of invention is described in detail:

[0036] The method of the present invention utilizes WordNet to support the realization of subject word matching technology, adopts the readability of detailed text preprocessing and project overall analysis calculation analysis program, such as figure 1 shown.

[0037] Method flow

[0038] The analysis of program readability based on WordNet is mainly divided into three steps: extracting keywords from annotation content, extracting keywords from code content, and generating the final project analysis tree by WordNet matching technology.

[0039] Step 1) Extract subject words from annotation content

[0040] (1) The subject words extracted from the comments will have many impacts, so the meaningless comment segments should be removed first. These comments are usually javadoc comments automatically generated by the compilation tool or as reminders, such as image...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

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.

Description

technical field [0001] The invention relates to a program analysis method, in particular to a program readability analysis method, which belongs to the field of software engineering. Background technique [0002] Program readability analysis is an important indicator used in software development and maintenance to evaluate the ease of maintenance and modification of software, and it is an indispensable link for developers to modify code and comments. Existing program readability analysis generally uses the development documents and API provided by the development language to explain the code segments that are not understood in the project out of the actual situation, or encode the code written by the development team before development. Readability analysis of code writing specifications. In actual programming practice, comments and development documents are the main breakthrough for programmers to understand the project. What is really difficult to understand is the comme...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 孙小兵刘杨超朱俊武李云
Owner YANGZHOU UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products