Dogs know when they&#x27;re in trouble by processing language in a similar way to humans