I was only able to extract a stem for about half the terms.
So, in the DPD DB, you have to look at the dpd_headwords.inflections column for the list of textual forms for terms and compounds. For sandhi, you have to look at the lookup.lookup_keycolumn and then map the sandhi to words via the deconstructor. Some tokens have multiple possible parses, so you’ll have to figure out how to handle that…
Keep in mind that it’s a prototype. Not knowing Pali, I just took a stab at it. I’m not sure how much time I’ll have over the coming months, but I may look into improving stem extraction. Or else someone can do the hard work for me. Just grab the SQLite database and check it out.
You can see the extraction code here:
The dpd_headwords table has a stem column. I’m using that.
Normally there are spaces between words in our edition of the Pāli Canon. Sandhi is when there isn’t a space between the words because the sounds smoosh together:
In those cases, you need the dictionary to help you split the sandhi into its component words.
Not imminently. I have a few other projects at the moment. But if there’s interest I can dust it off and give it a more serious go maybe sometime next year?
You can say that again! There’s a huge difference between a quick prototype and something production-ready!