News for hackers. Stuff that matters.
Re:Show HN: Simple Bhagavad Gita Search Web App by the_common_man on Sunday August 06, 2017 @12:53PM (#14942069)
Does this only search the English translation? I tried the famous 'yada yada hi dharmasya' but it was showing some random results.
Re:Show HN: Simple Bhagavad Gita Search Web App by cvaidya1986 on Sunday August 06, 2017 @01:37PM (#14942351)
Ah yes only English translation for now. Ok I will add it!
Re:Show HN: Simple Bhagavad Gita Search Web App by schoen on Sunday August 06, 2017 @02:17PM (#14942557)
I feel like the transliteration issues may be pretty complex! Someone using the site might choose to search for any of

यदा यदा हि धर्मस्य (in Unicode)

yadā-yadā hi dharmasya

yadā yadā hi dharmasya

yadaa yadaa hi dhamasya

yada yada hi dharmasya

If you want to allow search using transliteration, there are a number of interesting algorithmic and non-algorithmic questions about the range of different transliteration mechanisms that people may use.

Also, for a reason that I don't quite understand, people transliterating Sanskrit can be very inconsistent about where they do and don't transcribe spaces. Are the spaces perhaps not present in the original? For example ग्लानिर्भवति might be transcribed as "glānir bhavati" or "glānirbhavati", which may also be treated differently for search purposes.

(I don't actually know any Sanskrit; I'm just interested in linguistics and writing systems.)