Tumgik
#ngram
eltristan · 2 months
Text
The oddest thing about the Republican Party and their response across all channels to the SOTU (last night) is how Republicans suddenly care so much about Haiti... About how sleepy Joe needs to "look to Haiti" (most common n-gram)... (Context: Haiti 🇭🇹 is currently an incredibly violent place with armed gangs engaging in a civil war to overthrow the PM -- who isn't in Haiti at the moment -- currently much of the fighting is their attempt to take Port-au-Prince's Toussaint Louverture International Airport.)
iirc the last time the most Russia-aligned political party used "Look to ———" as a talking point, it was "Look to Libya" 🇱🇾 in the 3 months prior to the Benghazi attacks, after Republicans uniformly decried Obama's use of military force in Libya as "an affront to our constitution" (another n-gram).
Earlier this week Biden slipped additional USMC MSCEG into Haiti, including FAST (Fleet Anti-terrorism Security Teams), without telling anyone or making a fuss about it -- or at least Republicans haven't gotten the memo. Expect a Haitian Benghazi-attempt in 3 months, approximately July 4th - August 8th.
While it seems to have been an attempt, Benghazi itself didn't derail Obama's reelection in 2012 (but it kept Republicans distracted and busy for a while). People forget that the future #45 was a presidential candidate for the 2012 elections, using the slogan MAG "Make America Great" (reused in 2016 as MAGA), but that he dropped out (Loser) ...to Mitt Romney! If you look at what Republicans were most mad about, about Benghazi, it's about the purported cover-up and how the attack didn't affect the US election that year!
But the timing and effort that were put in to embarrass the then-Secretary-of-State over Benghazi, at the time maybe paid off and ultimately it was used to great effect in the 2016 election against Hilary Clinton. Current Sec-State is Antony Blinken (who would make an outstanding president), fwiw. (Expect to see Haiti resurface in 2028)
2 notes · View notes
thylawhiskers · 2 years
Text
Look at all this
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
46 notes · View notes
catwithbenefits · 10 months
Text
Tumblr media
what time traveler was responsible for this?
2 notes · View notes
Text
python matching with ngrams
# https://pythonprogrammingsnippets.com def get_ngrams(text, n): # split text into n-grams. ngrams = [] for i in range(len(text)-n+1): ngrams.append(text[i:i+n]) return ngrams def compare_strings_ngram_pct(string1, string2, n): # compare two strings based on the percentage of matching n-grams # Split strings into n-grams string1_ngrams = get_ngrams(string1, n) string2_ngrams = get_ngrams(string2, n) # Find the number of matching n-grams matching_ngrams = set(string1_ngrams) & set(string2_ngrams) # Calculate the percentage match percentage_match = (len(matching_ngrams) / len(string1_ngrams)) * 100 return percentage_match def compare_strings_ngram_max_size(string1, string2): # compare two strings based on the maximum matching n-gram size # Split strings into n-grams of varying lengths n = min(len(string1), len(string2)) for i in range(n, 0, -1): string1_ngrams = set(get_ngrams(string1, i)) string2_ngrams = set(get_ngrams(string2, i)) # Find the number of matching n-grams matching_ngrams = string1_ngrams & string2_ngrams if len(matching_ngrams) > 0: # Return the maximum matching n-gram size and break out of the loop return i # If no matching n-grams are found, return 0 return 0 string1 = "hello world" string2 = "hello there" n = 2 # n-gram size # find how much of string 2 matches string 1 based on n-grams percentage_match = compare_strings_ngram_pct(string1, string2, n) print(f"The percentage match is: {percentage_match}%") # find maximum ngram size of matching ngrams max_match_size = compare_strings_ngram_max_size(string1, string2) print(f"The maximum matching n-gram size is: {max_match_size}")
4 notes · View notes
not-apollo · 1 year
Text
Look at this photograph
Tumblr media Tumblr media
Everytime I do it it makes me laugh.
6 notes · View notes
comparatorclock · 5 months
Text
Tumblr media
who tf was talking about Einstein in the 17th century??
0 notes
desiree-machine · 8 months
Text
Tumblr media
0 notes
sprachventilblog · 1 year
Text
Geschlechterwandel
Nachdem ich vor einiger Zeit schon ein bisschen mit dem Google Ngram Viewer experimentiert habe, bin ich kürzlich eher durch Zufall auf ein weiteres interessantes Ergebnis gestoßen. weiterlesen
Tumblr media
1 note · View note
tanetlee · 1 year
Text
Tumblr media
0 notes
whale-music · 2 years
Text
Tumblr media
0 notes
jadagul · 9 months
Text
Today's linguistics adventure: early uses of the word "blog".
I was back-browsing xkcd, as you do, and 1043 is this:
Tumblr media
And given the...subsequent developments about Tumblr, I decided to make the equivalent graph today. I eventually found Google Trends, which I don't think is tracking exactly the same thing, but seems pretty compatible:
Tumblr media
(And it's surprising to me, how long and how late Tumblr had more google searches than blog. I guess people stopped searching "blog" because everything was a blog?)
But before that I reached for ngram viewer, and got something interesting.
Tumblr media
In this case, the interesting thing isn't the comparison; everything except blog is a visual flatline.
The interesting thing is, this search defaults to start from 1800. Why are there any hits at all? What's going on with that bump in the 1920s? (And a smaller one in the 1860s.)
Let's trim the ending of the series. We get this:
Tumblr media
(Note this means that "blog" was more popular in the corpus in 1920 than in 2004, which seems rather improbable.)
Ngram viewer is drawing from the Google Books corpus, which is, you know, directly searchable. So I looked for hits for "blog" between 1900 and 1940. And the first valid-looking hit is from page 6 of that classic work of literature, Over-the-counter Brokers and Dealers Registered with the Securities and Exchange Commission as of January 31, 1936:
Tumblr media
Ah. Problem solved?
Tumblr media
Almost! But now I wanna know what those other two, earlier bumps, are. In 1822 there's an arithmetic book that has stuff like this:
Tumblr media
and it does seem like there are a lot more hits like that; I don't know why they're localized to the 1800s though. I think all the early bumps might be from that, though.
241 notes · View notes
westeroswisdom · 2 months
Text
Tumblr media
The expression "bend the knee" certainly existed long before ASoIaF. But since the first book was published on 06 August 1996 its use in English has soared.
Google Books Ngram Viewer, of course, only covers books. So there was a dip after the publication of A Dance of Dragons in 2011. Though because of the HBO series the expression has entered the general lexicon and is being used by people who've neither read ASoIaF nor seen GoT. So as of 2019, the current end date of Ngram searching, it was moderately trending upwards again.
The mass worldwide web, at least Net 1.0, began around 1995. That's slightly before the time A Game of Thrones was published. So there's not much data prior to its publication to compare online use of "bend the knee" before its release and after. But use of the phrase is now extremely common – particularly in political discussions. Mainstream legit news media use it unselfconsciously.
It seems to be used particularly often in connection with a certain US political figure.
Tumblr media
However, with several criminal cases facing him this year, another GoT phrase may apply to him: Winter is Coming for Donald Trump.
23 notes · View notes
alexis-royce · 10 months
Text
Currently wondering whether I can get away with Pages using the word "edutainment."
The spell-checker isn't even batting an eye at it.
58 notes · View notes
Text
Tumblr media
what was the usage for 'death note' back in the 1800s i need to know
#death note#i will be doing more research on this when i'm not trying to get stuff done i just keep getting distracted#well at first i had the thought to check the correlation between the use of the word 'narcissism' and variations to check if it was used#more significantly and negatively post-addition-to-the-dsm or if the dsm (and fucking freud) chose a bad word that stigmatized it further#i wanted to know if the word had a negative connotation before or if the disorder made the word have the connotation it has now#same w psychopath/psychopathy. i was curious#anyways that had nothing to do w my work and i got even more off track bc of death note#i simply must find the reason 'death note' was used back then i'm v curious but alas i am about to fall behind on schoolwork#and like. Ngram measures books/lit so this is in writing somewhere with the exact phrase a significant amount#side note: i have case-insensitive turned off because it combines them and i want to be able to separate Death Note the series from whateve#death note means in past cases#and i have filtered out any cases i see as irrelevant (i.e. DEATH note Death note death NOTE <-real things that showed up)#also i find the resurgence of the phrase 'Death Note' in distinct periods to be interesting#DEATH NOTE was only used really during the manga/show's initial release#anyway i will be back to this at some point when i can do more research (this weekend?)#also i will answer the ship asks later bc i need to put some Thought into my answers. feel free to send as many as u want btw
16 notes · View notes
lonepower · 2 years
Text
me realizing half an hour later that skulduggery is. 200 years older than his taken name.
so like.
did he overhear it for the first time in the 19th century and just go 👁️👄👁️ and immediately change it, or
45 notes · View notes
thylawhiskers · 2 years
Text
So....
Tumblr media
I did a thing
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
77 notes · View notes