Text this: Collective effect of self-learning and social learning on language dynamics: a naming game approach in social networks