oyiptong / up-headliner

Headliner is a JSON API that returns personalized content obtained from providers
Mozilla Public License 2.0
0 stars 2 forks source link

Fix various issues with mappings #8

Closed Mardak closed 10 years ago

Mardak commented 10 years ago

This isn't an exact comparison.. but before, mostpopular.json resulted in:

{
  "d": {
    "Android": 11, 
    "Apple": 11, 
    "Arts": 4, 
    "Autos": 7, 
    "Baseball": 9, 
    "Basketball": 3, 
    "Boxing": 3, 
    "Design": 11, 
    "Football": 6, 
    "Health-Men": 32, 
    "Health-Women": 32, 
    "Ideas": 15, 
    "Movies": 29, 
    "Parenting": 6, 
    "Programming": 37, 
    "Science": 30, 
    "Soccer": 4, 
    "Sports": 44, 
    "Technology": 37, 
    "Tennis": 1, 
    "Travel": 26, 
    "Video-Games": 1
  }
}

and afterwards:

{
  "d": {
    "Android": 19, 
    "Apple": 19, 
    "Arts": 6, 
    "Autos": 15, 
    "Baseball": 13, 
    "Basketball": 6, 
    "Boxing": 3, 
    "Business": 41, 
    "Cooking": 30, 
    "Design": 18, 
    "Do-It-Yourself": 11, 
    "Fashion-Men": 30, 
    "Fashion-Women": 30, 
    "Football": 14, 
    "Health-Men": 58, 
    "Health-Women": 58, 
    "Home-Design": 11, 
    "Ideas": 18, 
    "Movies": 55, 
    "Music": 7, 
    "Parenting": 10, 
    "Politics": 5, 
    "Programming": 66, 
    "Science": 56, 
    "Soccer": 4, 
    "Sports": 50, 
    "Technology": 66, 
    "Television": 7, 
    "Tennis": 4, 
    "Travel": 50, 
    "Video-Games": 1, 
    "Weddings": 2
  }
}

So articles were additionally found for these interests: Business, Cooking, Do-It-Yourself, Fashion-Men, Fashion-Women, Home-Design, Music, Politics, Television, Weddings

Missing is Entrepreneur and Golf, but I believe those MAPPINGS rules are correct.