Formatting
A word can be unique while a pair keeps coming back. This page slides a window across the words and counts phrases of the length you set. The length opens at 2. Only phrases seen more than once are returned. “Odd socks in the dryer.” produces the pairs odd socks, socks in, in the, the dryer. Each pair exists once, so the object is {}.
“to be or not to be” reports {"to be": 2}. The window overlaps, so “or not” and “not to” are counted too and then dropped because they appear once. “odd socks and odd socks in the dryer” reports {"odd socks": 2}. Case is folded before the window runs. The words per phrase field accepts 2 through 30. At 3, “odd socks in” would be the unit, and the dryer sentence still has no repeat.
This is not the duplicate word finder. A doubled “the” with different neighbors is a repeated word and may never be a repeated pair. It is not a line dedupe. Punctuation is not part of the phrase: the period after dryer is ignored because dryer is the word.
Odd socks in the dryer. Words per phrase left at 2.
{} The pairs are odd socks, socks in, in the, and the dryer. Each occurs once. “to be or not to be” would report “to be” with 2.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Every two-word window in “Odd socks in the dryer.” occurs once. Phrases seen once are omitted.
{"to be": 2}. Overlapping windows are counted. Pairs that appear once are left out.
Yes. Set words per phrase to 3, up to 30. The dryer sentence still has no repeated triple.
No. The text is lowercased first. Odd socks and odd socks are the same phrase.
That page counts one word. “the the” is a hit there. This page counts a run of two or more, so a pair can be the hit even when each word is also common.