Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Remove leading, trailing, and repeated whitespace from a string
retext plugin to check for for repeated words
An Antora extension that checks Asciidoc source files for repeated words in prose.