Similarity analysis of cognitive scripts