A solver for Semantle

(victoriaritvo.com)

45 points | by evakhoury 1 day ago

7 comments

  • jml7c5 1 day ago
    Regarding Semantle, I found that Pimantle (https://semantle.pimanrul.es/) is a much more satisfying implementation to actually play. It provides a 2D visualization of guesses, which lets you see the clusters and lines of similarity more clearly.
    • AgentCIPHR 1 day ago
      Oooh I love this, thanks for sharing.
  • OisinMoran 1 day ago
    This is super interesting, thanks for sharing! I did a similar thing a few years ago which I'd been meaning to properly finish and share, and your post was the inspiration needed to make mine public (albeit still in a state much too messy for my liking, hopefully having it public will force me to improve it).

    We took fairly different approaches, but I really enjoy the visual explanation element of yours! Well done.

    My investigation stemmed from wondering if the seemingly useless 1st, 10th, and 1000th nearest word similarity scores were enough to uniquely ID the word. Turns out—yes, pretty much! It's effectively just a kind of reverse engineering, similar to how you also made your own version of the game. Can definitely improve on a lot.

    Tried today's puzzle and got it in two (first was 999/1000).

    Here's my code & write up: https://github.com/OisinMoran/Solving-Semantle/blob/main/Sol...

  • tptacek 1 day ago
    This has Peter Norvig sudoku energy, in that it describes a game that is tricky enough for humans to solve that it's become a whole pastime, but is a trivial solver away from reliably defeating, and with a tiny amount of code. Once you see what they're doing with this, you're like, oh of course. Very cool.
  • a_shovel 1 day ago
    I was hoping this would have some application for human solving. I gave up on Semantle because I couldn't figure out any sort of strategy.
  • omoikane 21 hours ago
    There was a solver years ago that used a similar technique, where you get similarity scores from three fixed words ("giant enemy crab") and it finds the target word instantly:

    https://github.com/manimino/semantle-crab

    The solver website seems down, but the archived version still works:

    https://web.archive.org/web/20220421184123/https://crab.mani...

  • keetal 1 day ago
    For french speakers who want to play a similar game, there is Cémantix (https://cemantix.certitudes.org/), also based on Google's word2vec.
  • tantalor 1 day ago
    Semantle is weird. Words you would expect to be close are not. For example: castle is far from moat and stone. Why?
    • OisinMoran 23 hours ago
      I think the way the similarity is done is based on word co-occurrence and the dataset used is news articles. So you can imagine that not a lot of news articles mention castle in that context.
      • tantalor 21 hours ago
        I guess I get really frustrated when the rules say you are scored on "how close you are to the secret word, based on your word's meaning" with very little explanation what that means.

        Then you have cases that drive me crazy, like the guess "food" is very far from the secret word "cupcake", and "toy" is actually very close to "cupcake". What?

        Like, come on. This is not playable or fun.

        For reference, these are the words close to "cupcake",

        https://proximity.clevergoat.com/nearest/Y3VwY2FrZQ%3D%3D