Text this: Modern logic in the service of law