Pergunta de entrevista da empresa Google

How would you implement language identification for the search engine?