txt.to.words.ext("Nel mezzo del cammin di nostra vita / mi ritrovai per
una selva oscura, che la diritta via era smarrita.")
# to see the difference between particular options for English,
# consider the following sentence from Joseph Conrad's "Nostromo":
sample.text = "That's how your money-making is justified here."
txt.to.words.ext(sample.text, corpus.lang = "English")
txt.to.words.ext(sample.text, corpus.lang = "English.contr")
txt.to.words.ext(sample.text, corpus.lang = "English.all")
Run the code above in your browser using DataLab