Text this: A mixture- based framework for nonparametric density estimation