Web services for predictive text analytics