add judge function for corpora