91³Ō¹Ļ

'It's good coding': Computer science students drawn to classes on Sanskrit, a 3,500-year-old language

Temple wall in Cambodia with religious text engraved in sanskrit
Sanskrit inscriptions are found on the walls of Banteay Srey, a 10th-century temple in Cambodia (Konstik via Getty Images)

Libbie Mills, an assistant professor in the department for the study of religion in the 91³Ō¹Ļā€™s Faculty of Arts & Science, noticed something interesting this fall in her introductory Sanskrit class: computer science students.

 

The course typically attracts students majoring in the study of religion, who are learning the language to further their research into Hinduism, Buddhism and Sikhism. Reading through her class list, however, Mills found that of six of the 40 enrolled students were actually computer science majors. 

ā€œI'm always excited when there are students from an unexpected place,ā€ she says. 

The lingual connection between Sanskrit and computer science, it turns out, has been the subject of interest for quite some time. The first well-known publication that examined the relationship was in 1985, when NASA scientist Rick Briggs published a research paper in which he argued that the 3,500-year-old language was the best candidate for programming artificial intelligence technology ā€“ namely because of its adherence to rigid grammatical rules. 

Paul Thomas, a fourth-year undergraduate student at St. Michaelā€™s College who plans on majoring in computer science next year, says he has a proclivity for learning languages, but ultimately took the course because of its connection to coding.

ā€œSanskrit is a very computational language,ā€ he explains. ā€œItā€™s a lot of syntax, which is the structure of programming itself. Classical Sanskrit is an engineered language.ā€

There are nearly 4,000 rules recorded in the fourth century BCE grammar of Pāį¹‡ini, an ancient scholar of the language ā€“ and Millā€™s approach to teaching it is methodical.

ā€œI'm a nerdā€ she says. ā€œI like mathy type things, and I teach in a bit of a sciencey way.ā€

She stresses to her students that this is not a typical language class, where after a few classes theyā€™ll be able to casually practise what they have learned over coffee. 

ā€œItā€™s not conversational, thereā€™s too much to learn at the beginning,ā€ she says. ā€œThey must learn the characters and how words get put together. Itā€™s mind-bogglingly awful at first.ā€ 

She starts with what she calls the building blocks ā€“ ā€œthe order of sounds we produce out of our mouths ... from the throat to palate to teeth to lipsā€ ā€“ and enthuses over the ā€œtidiness of the languageā€, where a few root words are the basis of the entire Sanskrit vocabulary.

ā€œIt's orderly,ā€ Mills says. ā€œIf you know the systems for making words you can work backward to the root to understand the meaning of the word. Itā€™s creative in an organized way. It is kind of amazing.ā€

Mills adds that she understands the affinity that computer programmers have with the language. ā€œItā€™s good coding,ā€ she says. 

For Thomas, the strict grammatical rules of Sanskrit align well with the goals of computer programmers who are ultimately interested in the ā€œquestion of how to create interface between computers and human languages.ā€  He maintains that Sanskrit is well positioned to do so because of its algorithmic foundation. ā€œComputers donā€™t understand linguistics, they understand rules,ā€ he says.  

In addition, the rigidity of Sanskrit makes it less likely that an artificial intelligence algorithm would misinterpret commands. The same canā€™t be said of a language like English, which is looser with its rules and where words have multiple meanings.

ā€œIn English, there are so many influences from different language streams,ā€ Mills says. ā€œItā€™s kind of a mess.ā€ 

The Bulletin Brief logo

Subscribe to The Bulletin Brief

Department for the study of Religeon