added select stem words function

added select stem words function