About Guessing the Language

In Python you can find in what language a text is written by using the langdetect package:

$ pip install langdetect
>>> from langdetect import detect
>>> detect("Tienes que seguir tu corazón.")
'es'

Tips and Tricks Programming Python 3