Rewritten recommendations algorithm using generic annotation method