# US 2024/0264827 A1 · Apparatus, system, and method for providing question and answer service including source code explanation, and method for providing chatbot service using same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0264827 A1
- Document ID: US20240264827A1
- Status: Published application
- Kind: A1
- Application number: 18/617,984
- Filed: 2024-03-27
- Published: 2024-08-08
- Earliest claimed: 2021-09-28
- Assignees: Langcode Inc.
- Applicants: Langcode Inc.
- Inventors: Min Jun KIM; Yun Jae KOH; Ji Soo HAN
- Web page: https://patentgrep.com/patent/US20240264827A1

## CPC

- G06F 8/73: Program documentation
- G06F 16/33: Querying
- G06F 16/332: Query formulation
- G06F 40/268: Morphological analysis
- G06F 40/30: Semantic analysis
- G06F 40/35: Discourse or dialogue representation
- H04L 51/00: User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L 51/02: using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An embodiment provides a method of providing a question-answer service including source code commentary based on a communication connection between a terminal and a server. The method includes 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The method of claim 1, wherein
the server includes a source code database storing text of materials related to source codes of one or more programming languages and text analysis information on the text.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
storing the text analysis information generated by the server in the source code database,
wherein the storing of the text analysis information includes:
extracting, by the server, text keywords by performing morphological analysis for the text stored in the source code database; and
analyzing, by the server, a relationship between the text keywords by performing sentence structure analysis for the text stored in the source code database and generating, by the server, the text analysis information including the text keywords and a relationship between the text keywords.

### Claim 4 (depends on 3)

The method of claim 3, wherein
the text analysis information further includes source code commentary information, and
the storing of the text analysis information includes:
setting, by the server, source code keywords corresponding to the text keywords based on variable information, class information, and function information used in one or more programming languages; and
generating, by the server, the source code commentary information including names of source codes corresponding to the source code keywords, abbreviated names of the source codes, and a relationship between translation of the source codes and the source code keywords.

### Claim 5 (depends on 4)

The method of claim 4, wherein the generating of the commentary information includes:
searching, by the server, whether source code commentary information corresponding to the source code text exists in the source code database; and
generating, by the server, the commentary information for the source code text including source code commentary text, based on source code commentary information corresponding to the source code text.

### Claim 6 (depends on 5)

The method of claim 5, wherein
the source code commentary text is formed in the same language as the text included in the request data.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
receiving, by the server, additional request data for text keywords included in the source code commentary text from the terminal, generating additional answer data corresponding to the additional request data, and providing the additional answer data to the terminal.

### Claim 8

A method of providing source code question-answer service by using a chatbot 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 by using the chatbot;
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 by using the chatbot.

### Claim 9 (depends on 8)

The method of claim 8, wherein
the server includes a source code database storing text of materials related to source codes of one or more programming languages and text analysis information on the text,
the method further comprises storing the text analysis information generated by the server in the source code database, and
the storing of the text analysis information includes:
extracting, by the server, text keywords by performing morphological analysis for the text stored in the source code database; and
analyzing, by the server, a relationship between the text keywords by performing sentence structure analysis for the text stored in the source code database and generating, by the server, the text analysis information including the text keywords and a relationship between the text keywords.

### Claim 10 (depends on 9)

The method of claim 9, wherein
the text analysis information further includes source code commentary information, and
the storing of the text analysis information includes:
setting, by the server, source code keywords corresponding to the text keywords based on variable information, class information, and function information used in one or more programming languages; and
generating, by the server, the source code commentary information including names of source codes corresponding to the source code keywords, abbreviated names of the source codes, and a relationship between translation of the source codes and the source code keywords.

### Claim 11 (depends on 10)

The method of claim 10, wherein the generating of the commentary information includes:
searching, by the server, whether source code commentary information corresponding to the source code text exists in the source code database; and
generating, by the server, the commentary information for the source code text including source code commentary text, based on source code commentary information corresponding to the source code text.

### Claim 12

A system for providing a question-answer service including source code commentary through a communication connection with a terminal, the system comprising:
a communication module configured to transmit and receive information to and from the terminal;
a memory storing a source code question-answer service program; and
a processor configured to execute the source code question-answer service program stored in the memory,
wherein the processor is further configured to execute the source code question-answer service program to
receive request data including source code text from the terminal through the communication module, generate commentary information of the source code text by analyzing the source code text based on a source code database, and perform 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 through the communication module.

### Claim 13 (depends on 12)

The system of claim 12, further comprising:
a source code database storing text of materials related to source codes of one or more programming languages and text analysis information on the text,
wherein the processor is further configured to execute the source code question-answer service program to extract text keywords by performing morphological analysis for the text stored in the source code database, and analyze a relationship between the text keywords by performing sentence structure analysis for the text stored in the source code database and generating, by the server, the text analysis information including the text keywords and a relationship between the text keywords.

### Claim 14 (depends on 13)

The system of claim 13, wherein
the text analysis information further includes source code commentary information, and
the processor is further configured to execute the source code question-answer service program to set source code keywords corresponding to the text keywords based on variable information, class information, and function information used in one or more programming languages, and generate the source code commentary information including names of source codes corresponding to the source code keywords, abbreviated names of the source codes, and a relationship between translation of the source codes and the source code keywords.

### Claim 15 (depends on 14)

The system of claim 14, wherein
the processor is further configured to execute the source code question-answer service program to search whether source code commentary information corresponding to the source code text exists in the source code database, and generate the commentary information for the source code text including source code commentary text, based on source code commentary information corresponding to the source code text.

### Claim 16

A device for providing a question-answer service including source code commentary, the device comprising:
an input/output module;
a memory storing a source code commentary service program; and
a processor configured to execute the source code commentary service program stored in the memory,
wherein the processor is further configured to execute the source code commentary service program to
receive request data including source code text through the input/output module, generate commentary information of the source code text by analyzing the source code text based on a source code database, and perform 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 display the answer data through the input/output module.

### Claim 17 (depends on 16)

The device of claim 16, further comprising:
a source code database storing text of materials related to source codes of one or more programming languages and text analysis information on the text,
wherein the processor is further configured to execute the source code commentary service program to extract text keywords by performing morphological analysis for the text stored in the source code database, and analyze a relationship between the text keywords by performing sentence structure analysis for the text stored in the source code database and generating, by the server, the text analysis information including the text keywords and a relationship between the text keywords.

### Claim 18 (depends on 17)

The device of claim 17, wherein
the text analysis information further includes source code commentary information, and
the processor is further configured to execute the source code commentary service program to set source code keywords corresponding to the text keywords based on variable information, class information, and function information used in one or more programming languages, and generate the source code commentary information including names of source codes corresponding to the source code keywords, abbreviated names of the source codes, and a relationship between translation of the source codes and the source code keywords.

### Claim 19 (depends on 18)

The device of claim 18, wherein
the processor is further configured to execute the source code commentary service program to search whether source code commentary information corresponding to the source code text exists in the source code database, and generate the commentary information for the source code text including source code commentary text, based on source code commentary information corresponding to the source code text.

### Claim 20 (depends on 1)

A non-transitory computer-readable recording medium in which a computer program for performing the method of providing the question-answer service including the source code commentary according to claim 1 is recorded.
