Text this: Nonparametric regression and generalized linear models: a roughness penalty approach