A question-answer service providing method using source code analysis and a chatbot based on a communication connection between a terminal and a server, the question-answer service providing method comprising:
- receiving, by the server, question data including a text from the terminal by using the chatbot;
- performing, by the server, natural language processing on the text based on the question data by using the chatbot and generating, by the server, a text analysis result including semantics of the text;
- and
- generating, by the server, answer data corresponding to the semantics of the text based on the text analysis result by using the chatbot and providing the answer data to the terminal,
- wherein the performing of the natural language processing comprises modifying, by the server, the text by converting a text keyword into source code information corresponding to the text keyword by using the chatbot when the text keyword including one or more words included in the text has semantics corresponding to the source code information stored in the server, and generating, by the server, the text analysis result by performing analysis on the modified text by using the chatbot.