Is there a way to automatically remove non-consecutive (and consecutive) duplicate words from a text?

This is just a simple text. The end result should be a text in which every word (chunks of letters separated by space and/or punctuation marks, including the hyphen) occurs only once. So, I'm not interested in meaning, just word count and absence of recurrence. Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.