If the language being processed is unknown, we can use the GCP to determine the language. In this recipe, we will illustrate how to do this using the Translate class's detect method. To illustrate the process, we will use the first paragraph of the English and German Wikipedia web pages for the word language. These are shown next. The following shows the first paragraph of the English Wikipedia web page (https://en.wikipedia.org/wiki/Language):
"Language is a system that consists of the development, acquisition, maintenance and use of complex systems of communication, particularly the human ability to do so; and a language is any specific example of such a system."
The following shows the first paragraph of the German Wikipedia web page (https://de.wikipedia.org/wiki/Language):
"Language ist ein Lied...