change the function names to processText and textFeatures.