a person is taken to court to discover whether he is guilty