Text this: Discrete kernel estimation and its applications