Sanskrit wordle anyone?

255 views
Skip to first unread message

Naresh Cuntoor

unread,
Feb 28, 2022, 11:05:57 AM2/28/22
to sanskrit-p...@googlegroups.com
I'm seeing Kannada version getting some user engagement. Anyone program a Sanskrit version of wordle yet?

Naresh

Shreevatsa R

unread,
Feb 28, 2022, 11:22:43 AM2/28/22
to sanskrit-programmers
It would be nice if someone did!

At https://rwmpelstilzchen.gitlab.io/wordles/ I see a "Sanskrit Wordle" listed, but it (https://skalyan91.github.io/wordle-sanskrit/) is actually Pali.

Looking at some of the other Indian languages, they make quite a few interesting choices for how to define a "5-letter word" (or whatever different length they use):

- The above Pali one uses Roman transliteration, and defines each vowel / consonant as a separate letter, e.g. "puṅkha" is 5 letters p - u - ṅ - kh - a.
- Some of the ones use each syllable as a separate letter, but give different hints for the vowel being right, the consonant being right, (one of the consonants being right?), etc.
- Some give the vowels already, and only ask the player to guess the consonants.

While playing some of these, I found it much harder than in English to think of a "5-letter word" (or whatever) in that sense… may just be my poor vocabulary, or it may be that because we generally don't count letters the same way, it's harder to recall them.

On Mon, 28 Feb 2022 at 08:05, Naresh Cuntoor <nare...@gmail.com> wrote:
I'm seeing Kannada version getting some user engagement. Anyone program a Sanskrit version of wordle yet?

Naresh

--
You received this message because you are subscribed to the Google Groups "sanskrit-programmers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sanskrit-program...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sanskrit-programmers/CAJskDbJZWGRsVUAM%3D9iKUpPYFbU3ztOtS30yXVPR4WTEqxPubg%40mail.gmail.com.

Naresh Cuntoor

unread,
Feb 28, 2022, 1:11:50 PM2/28/22
to sanskrit-p...@googlegroups.com
Seems like an extension of the Kannada version to devanagari (Sanskrit) should be straightforward..

Hrishikesh Terdalkar

unread,
Mar 1, 2022, 4:10:32 PM3/1/22
to sanskrit-p...@googlegroups.com
Namaste,

I think the primary issue isn't architectural, but that of coming up with a "good" set of conventions.
As Shreevatsa pointed out, it is hard to think of "puṅkha" as a 5 letter word.
In general, if I were making a "sensible" Wordle for "Sanskrit" (and not trying to just replace English vocabulary with Sanskrit IAST vocabulary), I would, first and foremost, want the vocabulary corresponding to N letter (syllable) words "in" Sanskrit, e.g. करोति, कमल, लक्ष्मण etc. for N = 3.

Case 2 mentioned by Shreevatsa seems close to this,
"Some of the ones use each syllable as a separate letter, but give different hints for the vowel being right, the consonant being right, (one of the consonants being right?), etc."

However, this could potentially require many hints, since instead of (letter, position) we add (at least one) extra dimension, On the first consideration, suppose we have 3 dimensions, (vowel, consonant, position), each can be correct or incorrect.
So 2^3 - 1 = 7 hints, excluding the two cases (which don't make sense) that of (incorrect vowel, incorrect consonant, correct/incorrect position), merging them into single "incorrect" hint.
There are of course more possibilities, since a syllable can contain correct vowel from another position and correct consonant from another position. (eġ. if the word was करोति) and we guess (तक्षक), here, correct consonant त् is present in the incorrect position, correct vowel अ present in the correct location. At the same time, correct consonant+vowel combination present in the incorrect position.
Next we can consider 4 dimensions (vowel, vowel-position, consonant, consonant-position), already our required hint set goes up.

If we consider all the cases and have an exhaustive set of 15-20 hint rules that are consistent etc, the sheer number of hints would make it not-fun.
If we omit certain possibilities, there could always be a non-trivial subset of players who don't like the conventions, or find it hard to think of the conventions as "natural".

That is where  Option 3 mentioned by Shreevatsa sounds less complicated, give the vowels, and make it a guessing game on consonants only. Then, the only problem that remains is of multiple consonants. We can again make simplification choices here, to limit words to single or double consonant letters. If this seems to reduce the size of vocabulary, we could add inflections as valid words too.

Once we have a set of conventions finalized, the path forward is simpler.

Arnab Bhattacharya

unread,
Mar 2, 2022, 2:16:49 AM3/2/22
to sanskrit-p...@googlegroups.com
Dear Hrishikesh,
The characterization by you is quite nice.
I would say the first version can be simply Option 3 in your email.

Let it be a 3-consonant wordle, with vowels correctly filled in. The Hindi wordle, by the way, does exactly that.

We can limit to each blanks being a single non-conjunct consonant.
If we want conjunct consonants such as तक्षक , we can use 4 blanks, with the second blank being marked with a halant to indicate that the second and third together forma conjunct.
The same strategy can be used for anusvara and visarga. They can be treated like vowel markings.

Thank you.
Regards,
Arnab


বুধ, ২ মার্চ, ২০২২ তারিখে ২:৪০ AM টায় তারিখে Hrishikesh Terdalkar <terdalk...@gmail.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Shreevatsa R

unread,
Mar 2, 2022, 3:14:04 AM3/2/22
to sanskrit-programmers
The Kannada Wordle that Naresh referred to is this one: https://wordalla.online/ (source code here).
It uses 6 hint types. (Option 2)
Naresh mentioned it seems to be popular, which we may take as validation that its design choices probably make sense.

Naresh Cuntoor

unread,
Mar 3, 2022, 12:55:19 AM3/3/22
to sanskrit-p...@googlegroups.com
The svara, vyanjana and placement hints in Kannada wordle can easily apply to Sanskrit as well. The Kannada version has two options - 4-letter or 5-letter words. The 4-letter game seems more doable. Maybe it is a lack of practice, the 5-letter game in Kannada seems much more difficult.

Naresh

Arnab Bhattacharya

unread,
Mar 8, 2022, 4:16:09 AM3/8/22
to sanskrit-p...@googlegroups.com
The Sanskrit wordle at https://skalyan91.github.io/wordle-sanskrit/ is throwing the error "That isn't in the PED" for even simple words such as "karma".
Is it under maintenance?

Regards,
Arnab


বৃহস্পতি, ৩ মার্চ, ২০২২ তারিখে ১১:২৫ AM টায় তারিখে Naresh Cuntoor <nare...@gmail.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Shreevatsa R

unread,
Mar 8, 2022, 11:35:47 AM3/8/22
to sanskrit-programmers
It's Pali, not Sanskrit (as mentioned in this thread / on the webpage). Try "kamma".

Arnab Bhattacharya

unread,
Mar 9, 2022, 10:25:15 PM3/9/22
to sanskrit-p...@googlegroups.com
Sorry, I missed that.
Regards,
Arnab

মঙ্গল, ৮ মার্চ, ২০২২ তারিখে ১০:০৫ PM টায় তারিখে Shreevatsa R <shree...@gmail.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Arnab Bhattacharya

unread,
Mar 9, 2022, 10:26:51 PM3/9/22
to sanskrit-p...@googlegroups.com
By the way, should it not then be called Pali wordle instead of Sanskrit wordle, and listed that way as well?

Regards,
Arnab

বৃহস্পতি, ১০ মার্চ, ২০২২ তারিখে ৮:৫৪ AM টায় তারিখে Arnab Bhattacharya <arnabbha...@gmail.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Sriram Durbha

unread,
Mar 13, 2022, 2:39:15 PM3/13/22
to sanskrit-p...@googlegroups.com
It might be more natural ( and fun ) to provide a गण  from छन्दस् instead of an arbitrary metric for length of word based on a transliteration.  

Arindam Saha

unread,
Nov 24, 2024, 2:47:20 AM11/24/24
to sanskrit-programmers
Hello everyone!

Surely, I am almost 3 years late to the party... But if anyone is still interested, Here is a simple Sanskrit wordle app that I just created:

https://sanskrit-wordle.streamlit.app/

It takes words from the amarakosha.

Please try it. All feedback is welcome. :)

Regards
Arindam Saha

Swarnadip Mitra

unread,
Nov 24, 2024, 8:27:47 AM11/24/24
to sanskrit-p...@googlegroups.com

Thanks and congratulations. Great work. Will try it out.


karthika

unread,
Nov 24, 2024, 9:25:57 AM11/24/24
to sanskrit-p...@googlegroups.com
>>>>>>> <https://github.com/amoghaUdupa/word-guessing-game>).
>>>>>>>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAJskDbJZWGRsVUAM%3D9iKUpPYFbU3ztOtS30yXVPR4WTEqxPubg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>>> .
>>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> You received this message because you are subscribed to the
>>>>>>>>>>> Google Groups "sanskrit-programmers" group.
>>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>>>> send an email to sanskrit-program...@googlegroups.com.
>>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAKEM%3DPM8pgA7hQLzVciXTZ%2BUhi%2B79dr0jBWFCPQeWK0t%2B9vhoQ%40mail.gmail.com
>>>>>>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAKEM%3DPM8pgA7hQLzVciXTZ%2BUhi%2B79dr0jBWFCPQeWK0t%2B9vhoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>> .
>>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>>> Groups "sanskrit-programmers" group.
>>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>>> send an email to sanskrit-program...@googlegroups.com.
>>>>>>>>>> To view this discussion on the web visit
>>>>>>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAJskDbKWDr6TdoO-9EgocLZAgbmYxfQbSsO1Pek2-B%2BugOam2w%40mail.gmail.com
>>>>>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAJskDbKWDr6TdoO-9EgocLZAgbmYxfQbSsO1Pek2-B%2BugOam2w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>>> .
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "sanskrit-programmers" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to sanskrit-program...@googlegroups.com.
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAJAzRBMBBwuwELwfmNGHwFTncjkzop8A2CYVvkytoBd8wcXctA%40mail.gmail.com
>>>>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAJAzRBMBBwuwELwfmNGHwFTncjkzop8A2CYVvkytoBd8wcXctA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Arnab Bhattacharya
>>>>>>>> arnabbha...@gmail.com
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>> Groups "sanskrit-programmers" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>> send an email to sanskrit-program...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7nJypxbz7cBK%3Dce%3DdKa58xVvg_BTBHUdwWkHrUWLiWP%2BA%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7nJypxbz7cBK%3Dce%3DdKa58xVvg_BTBHUdwWkHrUWLiWP%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "sanskrit-programmers" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to sanskrit-program...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAKEM%3DPOxDyGHfCw_P%3DcSPtGEFJ39tD%3D7jyHNTORWxAJLaDzA7w%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAKEM%3DPOxDyGHfCw_P%3DcSPtGEFJ39tD%3D7jyHNTORWxAJLaDzA7w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "sanskrit-programmers" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>>> an email to sanskrit-program...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAJskDb%2BnWu_Er8Z89FOArAYM2XTmaQnV%2BzZh3u6Zggu9A_HAzg%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAJskDb%2BnWu_Er8Z89FOArAYM2XTmaQnV%2BzZh3u6Zggu9A_HAzg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Arnab Bhattacharya
>>>>> arnabbha...@gmail.com
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "sanskrit-programmers" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to sanskrit-program...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7krOsHddZ8gK50aVuckWOC_R8iU1fjjSwoBJUth%3DOQzTw%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7krOsHddZ8gK50aVuckWOC_R8iU1fjjSwoBJUth%3DOQzTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "sanskrit-programmers" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to sanskrit-program...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAKEM%3DPM81Tc%3DurSG75Bu-ZvZBaqr5E%3Dqhnu1gVTeB_osWbbrKQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAKEM%3DPM81Tc%3DurSG75Bu-ZvZBaqr5E%3Dqhnu1gVTeB_osWbbrKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Arnab Bhattacharya
>>> arnabbha...@gmail.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "sanskrit-programmers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to sanskrit-program...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7nmJeUKwG96yQWU1R4MKKUM2kLkFxAnXQ7Fje0onfwS5w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7nmJeUKwG96yQWU1R4MKKUM2kLkFxAnXQ7Fje0onfwS5w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
Fantastic. Fun to play. Thank you for this.
--
Karthika N J
PhD student
(Teaching Assistant),
TCS Research Scholar,
CSE, IIT Bombay.

Arnab Bhattacharya

unread,
Nov 28, 2024, 10:57:06 AM11/28/24
to sanskrit-p...@googlegroups.com
Very good.
Thank you!

Three points:
1. It will be good to show a list of consonants and vowels greyed out.
2. It will be good to handle words like जगत् that end with a halanta-marker.
3. An archive of past games to play.

Regards,
Arnab

রবি, ২৪ নভে, ২০২৪ তারিখে ৭:৫৫ PM টায় তারিখে 'karthika' via sanskrit-programmers <sanskrit-p...@googlegroups.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Arindam Saha

unread,
Nov 28, 2024, 12:55:57 PM11/28/24
to sanskrit-p...@googlegroups.com
Dear Prof. Bhattacharyya,

Thank you for trying out the game. Regarding your points

1. This is a very good idea. I will definitely implement it in the upcoming versions of the app. I am not too good at UI/UX though... Any help on that front would be greatly appreciated.

2. I don't think I understand your point completely. There already are halanta words in the game. The word जगत् is a two अक्षर word. Do you mean assistance in typing such a word?

3. That will be added soon. A login feature will also be added to see the previous games and sores and leaderboards.

Thanks again for your interest and appreciation.

Regards
Arindam Saha

You received this message because you are subscribed to a topic in the Google Groups "sanskrit-programmers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sanskrit-programmers/G5rv0hpyfkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sanskrit-program...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sanskrit-programmers/CAM87N7%3DfwoN--NqVs0zoBt0tgStx%2Be0RAC0ivAE1D3jM0dtUZA%40mail.gmail.com.


--
Dr. Arindam Saha
Senior Research Data Scientist
Advanced Research Computing Centre
University College London

Arnab Bhattacharya

unread,
Nov 29, 2024, 3:27:12 AM11/29/24
to sanskrit-p...@googlegroups.com
Thank you!

Point 2: I meant that an ending halanta is not allowed. This should be made clear.

Some more points:
4. If there is only one अ-कार in the word such as भावुक, and somebody guesses कमल, it śhows one green and two orange. Ideally, it should just show the one green at the correct place, and grey/none for the others.

Otherwise, it is a bit confusing.

5. Finally, the word list can be enhanced by generating lots of words using declension rules. It disallowed me हसन्ति.

Congratulations once more on the great job!

The more I play, the more I like.

Thank you.
Regards,
Arnab


বৃহস্পতি, ২৮ নভে, ২০২৪ তারিখে ১১:২৫ PM টায় তারিখে Arindam Saha <arindam...@gmail.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Arindam Saha

unread,
Nov 29, 2024, 4:12:59 AM11/29/24
to sanskrit-p...@googlegroups.com
Thanks for the reply!

Regarding point 2, I think halanta words are allowed. Be careful though, a word like जगत् is only considered 2 aksharas. A word like हनूमत् which is a 3 akshara word, should be allowed.

Could you please let me know if it doesn't allow a valid 3 akshara halanta word. There might be a bug in the code.

Point 4 will be implemented soon (by the end of the next week for sure).

Point 5 seems more long term. I am working on word generation using panini's rules but it will take some time for sure. Do you know of any resources that might help me in that direction?

Regards
Arindam Saha

Arnab Bhattacharya

unread,
Dec 2, 2024, 12:42:32 AM12/2/24
to sanskrit-p...@googlegroups.com, Hrishikesh Terdalkar
Great!

I will try out.

For point 5, I believe @Hrishikesh Terdalkar can join the conversation.
We built a Telegram bot for Vyakarana that lists a lot of subnata and tinanta forms.

That list may be input.

Thank you.
Regards,
Arnab


শুক্র, ২৯ নভে, ২০২৪ তারিখে ২:৪৩ PM টায় তারিখে Arindam Saha <arindam...@gmail.com> লিখেছেন:


--
Arnab Bhattacharya
arnabbha...@gmail.com

Ryan Armstrong

unread,
Dec 2, 2024, 1:17:53 AM12/2/24
to sanskrit-p...@googlegroups.com
नमस्ते 
Excellent!
I am enjoying immensely!
One thing - on the colour scheme, point 1 and 2.
It seems to me that the svara is on the right and the vyanjana on the left of the cell.

Is this correct - you have it the other way round in the instructions.

Regards
Ryan



--
Regards

Ryan Armstrong
+27 82 852 7787
rya...@gmail.com

Arindam Saha

unread,
Dec 2, 2024, 1:29:50 AM12/2/24
to sanskrit-p...@googlegroups.com
Namaste,

You are absolutely correct. The right is the svara and left is vyanjana.

It was a typo and has been fixed.

Thanks for pointing it out.

I am glad that you are enjoying the game!

Regards
Arindam Saha

Hrishikesh Terdalkar

unread,
Dec 3, 2024, 8:26:03 AM12/3/24
to Arnab Bhattacharya, sanskrit-p...@googlegroups.com
The word lists can be generated using Prof. Huet's Sanskrit Heritage platform.
You can use my Python wrapper for it (install using `pip install heritage`)
and then do

import heritage
H = heritage.HeritagePlatform()
H.get_declensions('राम', 'm', False)

which will output

[[['रामः'], ['रामौ'], ['रामाः']],

 [['रामम्'], ['रामौ'], ['रामान्']],

 [['रामेण'], ['रामाभ्याम्'], ['रामैः', 'रामेभिः']],

 [['रामाय'], ['रामाभ्याम्'], ['रामेभ्यः']],

 [['रामात्'], ['रामाभ्याम्'], ['रामेभ्यः']],

 [['रामस्य'], ['रामयोः'], ['रामाणाम्']],

 [['रामे'], ['रामयोः'], ['रामेषु']],

 [['राम'], ['रामौ'], ['रामाः']]]


We can of course flatten this list

def flatten(l):

    '''Deep flatten any iterable'''

    for el in l:

        if (isinstance(el, Iterable) and not isinstance(el, (str, bytes))):

            yield from flatten(el)

        else:

            yield el


And then,

forms = list(flatten(H.get_declensions(word, gender, headers=False)))


Hope this helps.

Regards,
Hrishikesh

-
Hrishikesh Terdalkar
LIRIS Research Lab
Claude Bernard University Lyon 1

Reply all
Reply to author
Forward
0 new messages