Generalized additive modeling for Linguistics