Patterns in Words

Let’s find the repeated phrases in the English words. The words come from https://github.com/dwyl/english-words/blob/master/words_alpha.txt. The words list looks like this: ... aardvark aardvarks aardwolf ... To dig into the letters, I separate the letters by a space and insert a comma after the end of the words. ... a a r d v a r k, a a r d v a r k s, a a r d w o l f, ....

November 2, 2018 · 1441 words · Ray Pereda

Patterns in Lil' Wayne

Let’s find the repeated phrases in the song Mona Lisa by Lil’ Wayne. The lyrics are here: [Mona Lisa lyrics] (https://genius.com/Lil-wayne-mona-lisa-lyrics) There are 4 patterns with nigga: Count Phrase 2 think for me, nigga 4 for me, nigga 5 me, nigga 11 , nigga There are also 3 patterns with bitch: Count Phrase 2 stuntin', poppin' bottles Gettin' drunk with these bitches Then when they leave they get followed 2 I be with bitches that 3 be with bitches Then there is this super pattern: it has both nigga AND bitch:...

October 14, 2018 · 151 words · Ray Pereda

Patterns in Shakespeare

Let’s find the repeated phrases in the works of William Shakespeare. The text is available here: [The Complete Works of William Shakespeare] (http://www.gutenberg.org/ebooks/100) What’s convenient for us is that all the works are combined into a single text file. First, let’s look at the longest repeats, it is repeated once. [Reads] 'When as a lion's whelp shall, to himself unknown, without seeking find, and be embrac'd by a piece of tender air; and when from a stately cedar shall be lopp'd branches which, being dead many years, shall after revive, be jointed to the old stock, and freshly grow ; then shall Posthumus end his miseries, Britain be fortunate and flourish in peace and plenty....

October 11, 2018 · 314 words · Ray Pereda

Patterns in the Tweets of Donald Trump

Let’s find the repeated phrases in the 34,633 tweets from Donald Trump. The text is available here, and updated daily: [Donald’s Tweets] (http://www.trumptwitterarchive.com/) This is the longest repeated phrase and is repeated once: Make America Great Again! https : I am counting on your help to defeat Hillary Clinton and her cronies. Let's Make America Great Again! https: As President, I WILL fix this rigged system and only answer to YOU, the American people!...

October 9, 2018 · 192 words · Ray Pereda

Patterns in the Koran

Let’s find the repeated phrases in The Koran (Al-Qur’an). The text is available here: [Koran] (http://www.gutenberg.org/ebooks/2800) The Koran is organized into chapters, called Surahs. There are 114 Surahs in the Koran, each divided into verses. In this Surah 49, the Moon, we find this longest repeated phrase. It is a little spooky: And how great was my vengeance and my menace! Easy for warning have we made the Koran - but, is there anyone who receives the warning?...

October 8, 2018 · 573 words · Ray Pereda