Define analyze_text to accept arg