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")
Related questions
@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