Text this: Linear statistical analysis of discrete data