sameletter
Sameletter is a term used in string processing and linguistics to describe a property of a string where two adjacent characters are identical. Formally, a word w = w1 w2 ... wn over an alphabet Σ contains a same-letter if there exists an index i with wi = w(i+1). Strings that do not contain any such adjacency are sometimes described as having no same-letter pairs or as no-adjacent-equals.
In computing, same-letter occurrences are central to several techniques. Regular expressions often use a backreference to
In linguistics and typography, same-letter adjacency is common in English and other languages, often arising from
Notes on terminology: sameletter is not a formal mathematical term with a universal definition, but a descriptive
See also: run-length encoding, double letters, pattern matching, regular expressions.