Wordle in Persian
Update
- I added more words from Datasets for Farsi (Persian) Natural Language Processing (NLP) into the game.
Wordle in Persian
Wordle, which has recently become popular, is a seemingly simple but difficult game. The goal is for the player to guess a randomly selected five-letter solution word in 6 tries. At each try, each cell in the 6x5 grid in the game changes color depending on the inserted characters by the player. A cell turns green if the corresponding letter is part of the solution word and in the correct spot. It turns yellow if the letter is in the solution word but not at the correct spot. It turns gray if the letter is not part of the solution at all. At the end of the game (after 6 tries), the now colored grid is shown to the user indicating how they performed.
Inspired by the open-source code by Hannah Park, I created a Persian version of the game. I used the Dari Dataset for Part-of-Speech to select 5-letter words tagged as Noun to be included in the game. So, don’t be disappointed if you guess a proper 5-letter Persian word and the game tells you the word does not exist :D It just means the word was not included in the game.
While the original Wordle has a single word everyday for everyone, this version here lets you play as many times as you want and everyone gets a different random word every time they play.
Here is the link to the Github repo. The game is deployed on netlify here. I hope you enjoy playing.
Please let me know if you see any mistakes or have any questions/suggestions. You could also follow me on Twitter and LinkedIn.
Thanks for reading!