Patent attributes
In one embodiment, a method includes receiving, an input from a client device corresponding to n-grams; accessing a media-item index that indexes a plurality of media items with their respective keywords, each keyword being extracted from communications made by users of an online social network; identifying media items from the media-item index, each media item being identified based on its associated keywords matching the n-grams corresponding to the input; calculating a media-item score for each of the identified media items based on a number of occurrences in which the media item has been used in communications on the online social network in connection with its matched keywords; and sending, to the client device, data corresponding to the identified media items having a media-item score greater than a threshold media-item score.