What text will Trump tweet next? (weighed Levenshtein distance, Scrabble dictionary and Trump >2 letter words only)
Basic
20
Ṁ5819
resolved Aug 13
100%97%
in the more america treat rain or economy it and rose no as liar beit this together an it hope country deletion end this the are winning biden polls be america great again
0.1%
Rationalussy
0.3%
witnessing election interference not crime crooked democrats sad
0.0%
DONALDJTRUMP.COM
0.1%
Failed election justice no not sad democrats big make America great again
0.0%
A$AP Rocky released from prison and on his way home to the United States from Sweden. It was a Rocky Week, get home ASAP A$AP!
0.1%
WE WILL WIN!
0.1%
NATO teases. Note I'd have a peace treaty by now. Atone by 2024 or Nate Silver will be irate.
0.2%
The and the
0.3%
The interference
0.5%
The the
1.1%Other

Wroks like /Roma/what-will-be-the-text-of-the-next-t with following changes:

  • distance is calculated using the python Levenshtein library with weights insertion = 4, deletion = 2, substitution = 3 to promote getting a part of the answer right

  • words (after converting to lowercase and removing special characters, delimited by spaces) must in either the official Scrabble dictionary or in Trump's previous tweets (lowercase, removing special characters, hashtags, @ tags, retweets, and links, longer than 3 letters) or be "rationalussy". for calculation it will also have spaces removed.

  • the next tweet will be converted to lowercase, have links, @ tags, spaces, and special characters removed, if that leaves <10 characters it will be skipped.

  • please do not use short words to create nonsense sequences that test well, I might disqualify clear cases of doing so

You can check if your response is valid here: https://app.codingrooms.com/w/fEW9njrH7cEn (click "FORK" in the top right corner and change "YOUR RESPONSE HERE")

Get
Ṁ1,000
and
S1.00
Sort by:

I made a couple of alternative markets for embedding distance: https://manifold.markets/PeterBuyukliev/what-will-trump-tweet-about-embeddi https://manifold.markets/PeterBuyukliev/what-will-kamala-tweet-about-embedd I think it's a pretty interesting concept. You can bet on the meaning of the tweets, instead of the words used

import re

tweet = """Are you better off now than you were when I was president?

Our economy is shattered. Our border has been erased. We're a nation in decline.

Make the American Dream AFFORDABLE again. Make America SAFE again. Make America GREAT Again! """

tweet = re.sub(r'[^a-z]', '', tweet.lower())

targets = [

"The interference",

"witnessing election interference not crime crooked democrats sad",

"in the more america treat rain or economy it and rose no as liar beit this together an it hope country deletion end this the are winning biden polls be america great again",

"Rationalussy",

"NATO teases. Note I'd have a peace treaty by now. Atone by 2024 or Nate Silver will be irate.",

"WE WILL WIN!",

"Failed election justice no not sad democrats big make America great again"

]

targets = [re.sub(r'[^a-z]', '', target.lower()) for target in targets]

print(targets)

def levenshtein_distance(s1, s2):

if len(s1) < len(s2):

return levenshtein_distance(s2, s1)

if len(s2) == 0:

return len(s1)

previous_row = range(len(s2) + 1)

for i, c1 in enumerate(s1):

current_row = [i + 1]

for j, c2 in enumerate(s2):

insertions = previous_row[j + 1] + 1

deletions = current_row[j] + 1

substitutions = previous_row[j] + (c1 != c2)

current_row.append(min(insertions, deletions, substitutions))

previous_row = current_row

return previous_row[-1]

for target in targets:

distance = levenshtein_distance(tweet, target)

print(f"The Levenshtein distance between the tweet and '{target}' is: {distance}")

bought Ṁ375 NATO teases. Note I'... YES

@CodeandSolder this should close and resolve

https://x.com/realDonaldTrump/status/1822889460243001547

from the valid candidates, the Nate Silver one does best

edit: no, i was wrong, the other one is better

You led me astray lmao

Sorry, I am stupid

bought Ṁ283 A$AP Rocky released ... NO

A$AP Rocky released from prison and on his way home to the United States from Sweden. It was a Rocky Week, get home ASAP A$AP! is invalid - "aap" is not in Scrabble dictionary or Trump tweets

@CodeandSolder Isn't rationalussy invalid too

@CodeandSolder It's not in the official scrabble dictionary or Trump's previous tweets

@ShadowyZephyr it is, though, "rationalussy"

when I try to use this library I get an import error saying "partially initialized module 'levenshtein' has no attribute 'distance' (most likely due to a circular import)"?

@ShadowyZephyr you need capital L in the import

@CodeandSolder oh thanks

After removing @s, hashtags and actual words the trump corpus shrunk from 40903 positions to just 3887 lol

Ooops, I was accidentally checking for 2 not 3 letters per word, the intent is to prevent non-linguistic fuzzing using short words, what do?

@CodeandSolder I did accidentally slip in a 2 letter word.. more trying to participate for fun than get a win, change the criteria however you want. Won’t bother me

@Gen yeah, your answer is OK, I certainly won't disqualify you, I'll just remove the rule and add a polite request not to abuse short words

@CodeandSolder I’d also be okay if you ignored the word in testing, though idk how that works with your script.

I was trying to get into trumps head, no master plan behind it lol

MadgeboughtṀ10DONALDJTRUMP.COM YES

@Mad donaldjtrumpcom is invalid - "donaldjtrumpcom" is not in Scrabble dictionary or Trump tweets

@CodeandSolder ah whoops