摘要 |
PROBLEM TO BE SOLVED: To provide means to prepare variable explanation information that explains meaning of a variable used in a program.SOLUTION: A semantic extractor 100 which extracts meaning of a variable includes: a program static analysis unit 120 which extracts a plurality of pieces of dependence information of a word string consisting of one or more words, written in a source program 200 which is an analysis target, and influencing a value which should be taken by a variable in the source program 200, for each variable by static analysis for the source program 200; a lexical analysis unit 130 which cuts out a lexical token of a word unit from the plurality of pieces of extracted dependence information; a lexical token meaningful degree calculation unit 140 which calculates score showing how much the cut lexical token expresses meanings of the variable corresponding to the lexical token under a predetermined score calculation rule; a Japanese conversion unit 150 which chooses a predetermined number of lexical tokens out of a plurality of lexical tokens on the basis of the score of the lexical token calculated by the lexical token meaningful degree calculation unit 140 and converts the selected lexical token to Japanese. |