Text this: Higher dimensional log-linear model and its application