Determine if a Text Is Prose or Poetry 

Gather examples of Shakespearean poetry and prose to train a classifier.

In[1]:=
Click for copyable input
X

Train a classifier to distinguish poetry from prose.

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

Test the classifier on Shakespearean prose not in the training set.

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

Test the classifier on Shakespearean poetry not in the training set.

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