The Automatic Detective