function handling analysis of common words completed