Quantifying the language mastery