changes to text analysis script