Predicting, Up and Down: A Framework for Legal Prediction