abstract common words function