g.train('french', 'La souris est rentr\xc3\x83\xc2\xa9e dans son trou.')
g.train('english', 'my tailor is rich.')
g.train('french', 'Je ne sais pas si je viendrai demain.')
g.train('english', 'I do not plan to update my website soon.')
print(g.guess('Jumping out of cliffs it not a good idea.'))
print(g.guess('Demain il fera tr\xc3\x83\xc2\xa8s probablement chaud.'))
What is a relatively simple way to determine the probability that a sentence is in English?