Let examples replace hand-written rules
Imagine you want to catch spam email. A hand-written rule might say: if the subject contains “FREE!!!”, send it to spam.