What text will Trump tweet next? (weighed Levenshtein distance, Scrabble dictionary and Trump >2 letter words only)
18
245
780
2030
33%
Other
21%
The the
16%
The interference
7%
The and the
7%
witnessing election interference not crime crooked democrats sad
5%
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
3%
Rationalussy
3%
NATO teases. Note I'd have a peace treaty by now. Atone by 2024 or Nate Silver will be irate.
1.9%
WE WILL WIN!
1.9%
Failed election justice no not sad democrats big make America great again

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 Ṁ200 play money
Sort by:
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?

bought Ṁ10 of witnessing election ... YES

@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

bought Ṁ10 of Other YES

@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

boughtṀ10DONALDJTRUMP.COM YES

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

bought Ṁ10 of DONALDJTRUMP.COM YES

@CodeandSolder ah whoops