About Guessing the Language

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

1
$ pip install guess_language-spirit
1
2
3
>>> from guess_language import guess_language
>>> guess_language("Tienes que seguir tu corazón.")
'es'

Tips and Tricks Programming Python 3