Patent ID: 11893385
Assignee: OPEN WEAVER INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A method for automatically generating natural language documentation for source code files, the method comprising:
parsing a source code file to extract a function and generate an abstract syntax tree;
training a programming language neural network model on a plurality of key constructs of a programming language comprising at least two of syntax expression, functions, function signatures, programming language keywords and associated documentation;
generating first natural language documentation for each of a plurality of program statements within the function using a programming language neural network model;
generating second natural language documentation for the function as a whole by processing a code snippet of the function using a function documentation neural network model;
consolidating the first natural language documentation and the second natural language documentation at a function level, a source file level, and a project level to create consolidated natural language documentation; and summarizing the consolidated natural language documentation using a customized summarization routine.