A method of providing a question-answer service including source code commentary through a communication connection between a terminal and a server, the method comprising:
- receiving, by the server, request data including source code text from the terminal;
- generating, by the server, commentary information of the source code text by analyzing the source code text based on a source code database;
- and
- performing, by the server, natural language processing on the request data based on the commentary information of the source code text to generate answer data corresponding to the request data and provide the answer data to the terminal.