Inverse regression analysis of text