Detect the Language of a Text 

Import French, English, German, and Spanish texts from the web to use to train a classifier.

In[1]:=
Click for copyable input
X

Make a classifier using the training texts.

In[2]:=
Click for copyable input
X
Out[2]=

Test the classifier on simple phrases.

In[3]:=
Click for copyable input
X
Out[3]=

Detect the languages of texts.

In[4]:=
Click for copyable input
X
Out[4]=
de es ja pt-br zh