A non-transitory computer readable medium that includes computer readable instructions that when executed by a processor cause the processor to perform steps, comprising:
- receiving a newly-input first sentence on a chat screen;
- dividing each of past-input first sentences into words;
- detecting, from synonyms corresponding to each of a plurality words, synonyms corresponding to each of the words obtained by dividing each of the past-input sentences;
- establishing association information associating each of the past-input first sentences with the synonyms corresponding to each of the words obtained by dividing each of the past-input sentences and storing the association information;
- determining appearance frequency of the synonyms corresponding to each of the words obtained by dividing each of the past-input sentences based on the association information;
- selecting, from the synonyms corresponding to each of the plurality of words stored in a memory, the synonyms corresponding to each of the words obtained by dividing each of the past-input first sentences, in descending order of the appearance frequency;
- storing the selected synonyms in the memory;
- dividing the newly-input first sentence into words;
- detecting synonyms corresponding to each of the words obtained by dividing the newly-input first sentence, from the memory storing the synonyms corresponding to each of the words obtained by dividing each of the past-input first sentences selected in the descending order of appearance frequency of the words from the memory storing synonyms corresponding to each of the plurality of words;
- determining whether there is at least one of the second sentences, in the memory storing the second sentences, corresponding to the newly-input first sentence based on the detected synonyms and the words of the newly-input first sentence;
- under a condition that there is at least one of the second sentences, in the memory storing the second sentences, corresponding to the newly-input first sentence based on the detected synonyms and the words of the newly-input first sentence, retrieving, from the memory storing second sentences in association with the past-input first sentences, the at least one of the second sentences corresponding to the newly-input first sentence, based on the detected synonyms and the words of the newly-input first sentence and displaying the at least one of the second sentences on the chat screen;
- and
- under a condition that the at least one of the second sentences comprise two or more second sentences corresponding to the newly-input first sentence based on the detected synonyms and the words of the newly-input first sentence, displaying an indication that receives a selection of one of the two or more second sentences corresponding to the newly-input first sentence and an indication that receives a response indicating that no second sentence to be selected is present on the chat screen, and when a selection of the indication that no second sentence to be selected is present is received, presenting a different option to give an answer;
- and
- under a condition that there is not at least one of the second sentences, in the memory storing the second sentences, corresponding to the newly-input first sentence based on the detected synonyms and the words of the newly-input first sentence, receiving another newly-input first sentence.