Text this: A varying coefficient approach to global flexibility in demand analysis: a semiparametric approximation