Using a machine learning algorithm, prophet does sentiment analysis on the source data every day. This information is then feed into a predictive Bayesian network that determines weather a stock will open higher or lower than it traded that day.
The rest of how it works is, of course, a trade secret.