1. A method implemented by a computer, the method comprising: identifying, by a computer, first groups of one or more first content items, wherein each of the first groups is defined by one or more first content items grouped under a context corresponding to the first group, and each first group has a different corresponding context; generating, by the computer, a first score for each of the one or more first groups; identifying, by the computer, second groups of one or more second content items, wherein each of the second groups is defined by one or more second content items grouped under a context corresponding to the second group, and each second group has a different corresponding context; generating by the computer, a second score for each of the one or more second groups; identifying, by the computer, corresponding group pairs, each corresponding group pair being a first group and a second group having a same corresponding context; generating, by the computer, third scores for the corresponding group pairs, each third score being for a corresponding group pair and being based on the respective first score and second score of the first group and the second group of the corresponding group pair; adjusting, by the computer, a ranking of the one or more first content items based on the third scores to create a diversified ranking in which a first content item grouped under a first context corresponding to a first group and a first content item grouped under a second context corresponding to a second group are presented with one or more second content items; providing data, by the computer, of the diversified ranking of the one or more first content items.