Seven segment displays are often used to show numbers but it can show some letters and you can add a word(s) to see if it matches and possibly find the longest word that you can show in seven segment display. There are some bad words that might be possible but weird or some I put in that it actually can be made. You can just remix it and change it if you want to change the bad words but I think this thing works. If the number of letters are the same, original word is put in longest word.
Tom Scott made this in other text based coding program so I wanted to try it in scratch.