A computer-implemented method of providing a contextual privacy engine, comprising: receiving a notification; receiving a context via a context interface; applying the context to the notification via a notification rule of a plurality of active notification rules to be enforced; wherein the notification rules are stored, wherein each notification rule is represented by a triplet comprising a set of contexts, an action, and a confidence score, and wherein each notification rule has an activation state which can be either active or inactive; taking an action of a plurality of possible actions via a user notification interface based at least in part on the applying; receiving a feedback via a user feedback interface; and updating a confidence score for the notification rule from a current confidence score, score old , to a new confidence score, score new , based at least in part on the feedback, characterized in that : updating the confidence score comprises an operation of the form score new ( A i ) = min ( score old ( A i ) + f 1 ∗ f2 ∗ Δ + c , 1 + t ), wherein A represents a set of the plurality of possible actions, i represents an index of the action, t represents a threshold value, f 1 represents a fraction of affirmative feedback received from the user, f 2 represents a percentage of the plurality of active notification rules with A i as the preferred action, Δ represents a difference between t and score old ( A i ), and c is a rate-of-growth constant; and the method further comprising updating an activation state of the notification rule, if the confidence score for the rule has moved above or below the threshold value t. receiving a notification; receiving a context via a context interface; applying the context to the notification via a notification rule of a plurality of active notification rules to be enforced; wherein the notification rules are stored, wherein each notification rule is represented by a triplet comprising a set of contexts, an action, and a confidence score, and wherein each notification rule has an activation state which can be either active or inactive; taking an action of a plurality of possible actions via a user notification interface based at least in part on the applying; receiving a feedback via a user feedback interface; and updating a confidence score for the notification rule from a current confidence score, score old , to a new confidence score, score new , based at least in part on the feedback, updating the confidence score comprises an operation of the form score new ( A i ) = min ( score old ( A i ) + f 1 ∗ f2 ∗ Δ + c , 1 + t ), wherein A represents a set of the plurality of possible actions, i represents an index of the action, t represents a threshold value, f 1 represents a fraction of affirmative feedback received from the user, f 2 represents a percentage of the plurality of active notification rules with A i as the preferred action, Δ represents a difference between t and score old ( A i ), and c is a rate-of-growth constant; and the method further comprising updating an activation state of the notification rule, if the confidence score for the rule has moved above or below the threshold value t. <EOS>