Text this: The multivariate Bernoulli detector