Iām guessing text classification model trained on https://www.kaggle.com/datasnaek/mbti-type or similar dataset. The script parses all the comments of the user from reddit and feeds it to the model and model predicts the probabilities of the 16 possible personalities.