CPC H04L 51/04 (2013.01) [G06F 40/205 (2020.01); G06F 40/247 (2020.01); H04L 51/10 (2013.01); H04L 51/52 (2022.05)] | 20 Claims |
1. A method, the method comprising:
receiving, by a first device, a text string inputted by a second user into chat text of a messaging client, the messaging client enabling communication between the second user of a second device and a first user of the first device; and
in response to receiving the text string inputted into the chat text, automatically by the first device:
parsing the text string into one or more text portions;
determining one or more relevant tags of a plurality of tags based on the one or more parsed text portions;
identifying a root word in an individual text portion based on the one or more relevant tags;
identifying associated children words for the identified root word, the children words being in the individual text portion;
assigning scores for the one or more parsed text portions of the text string by:
generating a first score for the identified root word; and
generating a second set of scores for the identified children words associated with the identified root word;
selecting a media overlay of a plurality of media overlays based on the one or more relevant tags and a plurality of scores, the selecting of the media overlay comprising selecting the media overlay that corresponds to the plurality of scores including (1) the first score corresponding to the identified root word, and (2) the second set of scores corresponding to the identified children words; and
displaying the selected media overlay adjacent to the text string within the chat text of the messaging client enabling the first device to send a reply message that includes the selected media overlay to the second device.
|