Follow for more talkers

Puzzle that baffled scientists for 2,500 years finally solved

“I had a eureka moment."

Avatar photo

Published

on
Ancient grammatical puzzle: Page from an 18th-century copy of the document. (Cambridge University Library via SWNS)

By Stephen Beech via SWNS

An ancient grammatical puzzle that has baffled scientists for 2,500 years has been solved by a Cambridge University student.

Indian-born PhD scholar Rishi Rajpopat, 27, finally cracked the riddle which has defeated Sanskrit experts since the 5th Century BC - by decoding a rule taught by “the father of linguistics” Pāṇini.

The discovery makes it possible to 'derive' any Sanskrit word – to construct millions of grammatically correct words including ‘mantra’ and ‘guru’ – using Pāṇini’s revered ‘language machine’ which is widely considered to be one of the great intellectual achievements in history.

Leading Sanskrit scholars have described the discovery as ‘revolutionary’ - and it could now mean that Pāṇini’s grammar can be taught to computers for the first time.

While researching his Ph.D., published today, Dr. Rajpopat decoded a 2,500-year-old algorithm that makes it possible, for the first time, to accurately use Pāṇini’s ‘language machine.'

Pāṇini’s system - 4,000 rules detailed in his greatest work, the Aṣṭādhyāyī which is thought to have been written around 500BC – is meant to work like a machine.

Rahil Rajpopat, the student who solved the ancient grammatical puzzle. (Cambridge University Library via SWNS)

Feed in the base and suffix of a word and it should turn them into grammatically correct words and sentences through a step-by-step process.

However, until now, there has been a huge problem. Scientists say that, often, two or more of Pāṇini’s rules are simultaneously applicable at the same step - leaving scholars to agonize over which one to choose.

Solving so-called 'rule conflicts', which affect millions of Sanskrit words including certain forms of ‘mantra’ and ‘guru’, requires an algorithm.

Pāṇini, who is thought to have lived in a region in what is now northwest Pakistan and southeast Afghanistan, taught a metarule to help decide which rule should be applied in the event of ‘rule conflict’.

But for the last 2,500 years, scholars have misinterpreted the metarule meaning that they often ended up with a grammatically incorrect result.

In an attempt to fix the issue, many researchers laboriously developed hundreds of other metarules.

Ancient grammatical puzzle

But Dr. Rajpopat showed that these are not just incapable of solving the problem at hand – they all produced too many exceptions – but also completely unnecessary.

He explained that Pāṇini’s ‘language machine’ is ‘self-sufficient’.

Dr. Rajpopat, who started his Ph.D. at St John’s College, Cambridge, in 2017, said: “Pāṇini had an extraordinary mind and he built a machine unrivaled in human history.

"He didn’t expect us to add new ideas to his rules. The more we fiddle with Pāṇini's grammar, the more it eludes us.”

Traditionally, scientists have interpreted Pāṇini’s metarule as meaning: in the event of a conflict between two rules of equal strength, the rule that comes later in the grammar’s serial order wins.

Dr. Rajpopat rejects this, arguing instead that Pāṇini meant that between rules applicable to the left and right sides of a word respectively,

He said Pāṇini wanted us to choose the rule applicable to the right side. Employing this interpretation, Dr. Rajpopat found Pāṇini’s language machine produced grammatically correct words with almost no exceptions.

Six months before Dr. Rajpopat made his discovery, his supervisor at Cambridge, Sanskrit Professor Vincenzo Vergiani, gave him some prescient advice: “If the solution is complicated, you are probably wrong.”

Dr. Rajpopat said: “I had a eureka moment in Cambridge.

"After nine months of trying to crack this problem, I was almost ready to quit, I was getting nowhere.

"So I closed the books for a month and just enjoyed the summer, swimming, cycling, cooking, praying and meditating.

"Then, begrudgingly I went back to work, and, within minutes, as I turned the pages, these patterns started emerging, and it all started to make sense.

"There was a lot more work to do, but I’d found the biggest part of the puzzle.

“Over the next few weeks I was so excited, I couldn’t sleep and would spend hours in the library including in the middle of the night to check what I’d found and solve related problems. That work took another two-and-a-half years.”

Prof Vergiani said: "My student Rishi has cracked it.

"He has found an extraordinarily elegant solution to a problem that has perplexed scholars for centuries.

"This discovery will revolutionize the study of Sanskrit at a time when interest in the language is on the rise.”

Sanskrit is an ancient and classical Indo-European language from South Asia. It is the sacred language of Hinduism, but also the medium through which much of India’s greatest science, philosophy, poetry and other secular literature have been communicated for centuries.

While only spoken in India by an estimated 25,000 people today, Sanskrit has growing political significance in India and has influenced many other languages and cultures around the world.

Dr. Rajpopat, who was born in Mumbai and learned Sanskrit in high school, said: “Some of the most ancient wisdom of India has been produced in Sanskrit and we still don’t fully understand what our ancestors achieved.

"We’ve often been led to believe that we’re not important, that we haven’t brought enough to the table.

"I hope this discovery will infuse students in India with confidence, pride, and hope that they too can achieve great things.”

He said that a major implication of his discovery is that now we have the algorithm that runs Pāṇini's grammar, we could potentially teach this grammar to computers.

He added: "Computer scientists working on Natural Language Processing gave up on rule-based approaches over 50 years ago.

“So teaching computers how to combine the speaker’s intention with Pāṇini’s rule-based grammar to produce human speech would be a major milestone in the history of human interaction with machines, as well as in India's intellectual history."

Stories and infographics by ‘Talker Research’ are available to download & ready to use. Stories and videos by ‘Talker News’ are managed by SWNS. To license content for editorial or commercial use and to see the full scope of SWNS content, please email [email protected] or submit an inquiry via our contact form.

Top Talkers