How to Automate Labeling with Rules