Theoretical Foundations for Digital Text Analysis. (27th February 2015)