This "AI" (not really an AI) uses key words and phrases that have been confirmed by several studies done on words used by democrats and republicans to assign a political stance (or bias) rating to a text sample. Basically, it determines if a speech or message is democratic or republican. It gives these things a score between -100 (republican) to 100 (democratic). Works best with long samples. Run it in turbo mode for best results.
Used these articles to determine keywords: -http://www.robweir.com/blog/2014/02/the-words-democrats-and-republicans-use.html -http://freakonomics.com/podcast/how-biased-is-your-media/ -http://time.com/4092475/republican-debate-words-democrats/ Also, I used the PAM on a few political candidates: Donald Trump got a score of -10 Ted Cruz got -110 John Kasich got a -50 Hillary Clinton got a 50 Bernie Sanders got a 60