Legis is using bleeding-edge artificial intelligence techniques to forecast political events.