Wednesday, October 5, 2022

Is Sanskrit really the Best Language for Artificial Intelligence and Coding?

 Hello friends, welcome again to this new episode of Hyper Quest. Whatever I have chosen the topic today, again it is an exciting topic and it is going to be very informative. Today we will talk about the fantastic knowledge hidden in Sanskrit grammar. Since this has spread on the internet, "NASA has claimed that Sanskrit is a very suitable language for artificial intelligence". Many brothers spread this, some brothers are Skeptical they don't know whether this is true or not. That's why they requested me to make a detailed video, so I made this video. The video might be too long because I have tried to cover a single detail. Maybe this video will be of 40-50 minutes. 

So I have broken this episode into two parts again. In the first part, we will try to know whether NASA has said something like this. If it has been said then what's the evidence? which research paper is it? What is given inside that? And in the second part, we will do a practical on Sanskrit. I will provide practical knowledge, and show you by doing practical so that you understand whether Sanskrit can become a coding language or not. 

If you are new to the channel, then subscribe to the channel, now without any further delay. Let's start the video. [Music] it is true that in 1985 a scientist from NASA brought out a research paper named "Knowledge Representation in Sanskrit and Artificial Intelligence", his name was "Rick Briggs" I have read this research paper thoroughly. In this part, I will tell you all the things which he has told in that paper with all the examples and evidence. But before that, there is a misunderstanding. 

We will clear it. The misconception is that when we speak any language whether it is Sanskrit, English, Hindi, Urdu, Punjabi, or Marathi when we say that it can become a good artificial intelligence language then it doesn't mean that, the language of the computer that we hear C++, C#, Java or Python we will replace it. What happens? The computer understands only one language, we all know Binary Language 0 or 1. Now 0 and 1 are nothing, these are the states of hardware such as if a semiconductor chip in it is a transistor, then its 'ON' situation is called 1, or the 'OFF' situation is called 0. Now we can go ahead with it. As in Voltage, we can call +5, -5 as 1. If voltage is zero then it is called 0. The computer only understands 0 and 1. On this, a whole Binary Language was developed. How were these developed? Different combinations of these transistors were made and different types of operations have been developed it has become a language from 0 and 1, so computers only understand 0 and 1. This is called "Low-Level Language". 

Early coders used to do coding in this language and used to write programs but slowly with development and technological advancement came, they started doing layering. So that the coming coder would not have to go directly into that difficult language rather light language means "high-level language" for example, the languages are created C, C++, and Java languages are layered. They have a layer of interpretation means it should be easy, the interface becomes easy, and writing coding becomes easy. In this, whether the language is English, Punjabi, or Spanish all depends on the developer. There is no important role of language in it. Because if you see in coding there are hardly 100-150 words if you pick any language like 'For' and 'duve wa lupe' all these words or keywords, whatever is it. 

Understand like in maths there are X, Y, Z and A, B, C you can assume क, ख, ग from them you can solve math. There is no such role of language, you can remove this misconception that it is said by removing C++ Sanskrit will come. It hasn't been said that. The thing that has been talked about in the research paper is 'interface'. The program that is being developed can be done in any language, means in computer language. Be it any language in the world, unless you convert it to the format of 0 and 1, the computer is not going to understand it. 

That's why it has been talked about the interface, the interface between human and computer will be created. When the computer understands completely human things, then there is a need for Sanskrit. There is no need for Sanskrit in basic and low-level coding. It is needed in Interface development. And what happened is that only Sanskrit is being spoken no other languages are spoken like Hindi, English, Spanish, Portuguese, or neither African language. Now we will understand this, In the 21st Century whatever languages we speak all over the world, they have not remained pure. 

We have become connected globally that one language that has stolen many things from another language. Like if I speak Hindi, I will find Urdu, and English in it. So what happens after so much adulteration, the computer does not understand it. To get rid of it, the scientist needed a pure language, so they went back in time. The further back you go, the less the languages will become. When you go far back in time, there will be very few, five, or six languages left. Like Sanskrit, Greek and Latin are left. there was very little chance of adulteration because there were very few people. Now, from Sanskrit, Greek, and Latin why Sanskrit got so much attention? Because let me explain one important thing to you. Today there are so many languages. 

If I speak Hindi, I don't know English and I want to learn English, then I will find a Hindi-speaking person who knows English. I will go to him, he knows Hindi, I can understand him and he will teach me English. But if I want to learn English and I go to a person who doesn't know Hindi only English is known to him. Neither he will understand my Hindi, nor I will understand his English. And he will not be able to teach me. That's why at that time, today it has become so easy but at that time there were only 3-4 languages. If a greek man has come to India and wants to learn Sanskrit then he needs a saint or sage who knows Greek only then he will make him understood. 

Or he comes to Greek in his childhood then living there he will be able to understand Sanskrit. That's why it was very difficult to learn a new language. To make grammar for a new language means to teach Hindi and if we speak Hindi then how will we teach it? So on this Scholar Panini did very groundbreaking work in Sanskrit that how to teach Sanskrit Grammar. Now you have to teach Sanskrit and only Sanskrit we know. How will you do it, Panini wrote the 'Ashtadhyayi' text means his book in 4,000 Sutras taught how to teach Sanskrit, and how Sanskrit expand. He has written a book, and after reading you can make complete Sanskrit. It condensed into 4,000 Sutras. How did he do that? When scientists and our linguistic experts saw it, they found there is a 'Meta language' in it. What's the 'Meta language'? 

For example, the real language is Sanskrit which has to be taught to teach that Meta language has been created. Panini has developed it. The Meta language has come out from this real language. You can see how wonderful it is. There is a Meta language that has to be taught to real language, and this Meta language itself has come out of this language. 

It was such a great example and coders liked it very much. The coders who are watching this video will know the concept of "Recursion", in which functions call itself, a loop keeps going. Panini's ‘Ashtadhyayi is very much understood by scientists and linguistic experts that it is a great system and when he did further research on this, he also came to know that when there are 4000 Sutras and from that, the whole Sanskrit comes out, which means it has a great structure. This is not a dictionary-based language, from where the word has come do not know, then go see the dictionary, it is not like this. There is a rule for the words that are being formed in it. It got absorbed in 4000 Sutras. 

It means its highly structured language and that's why ‘Ashtadhyayi' can be considered the greatest achievement of human beings written by Scholar Panini. Therefore it is seen as a great achievement towards the algorithmic process of the first human. Then more research started in Sanskrit, and different types of things came out from Sanskrit. It has been seen in Sanskrit that coding languages, such as C++, Python, and Java their structure has been found in Sanskrit. Now I will do a practical of it, which I have told you to do in the next part. But the coders who know, what is object-oriented programming, classes, functions, duve wa lupe, primitive data types, and keywords they will understand what I'm going to tell. I will compare that to this which is our computer coding language, which all these words. What are these things in Sanskrit grammar. Then like I told you, the next part is going to come in that we will see examples also. Like in this we can say keywords such as 'Sangya', and Operator in a language called 'Pratyay', and functions are called 'Vidhi' in Sanskrit. 

Then We have the Primitive data type which is called 'Pratyahara' then there is a fundamental alphabet it has been told from the '14 Maheshwar Sutras' means you will get almost everything. Like in your derived class in which overriding of inherited methods are done here you can compare from a process 'Utsargaapravaad'. Almost a highly structured computer language like Sanskrit matched. That's why the scientists found this amazing, these are the same formula. With the limited structure, you have and from it millions of words are being created from it. An Algorithm process we get, that's why scientists started saying that when we already have such a language in our human history, then why are we wasting so much time on an interface and investing money in it? That's why then 'Rick Briggs' wrote this paper and now we will understand what he has given in this paper, and that he tells about Sanskrit with examples. So let's start. In these examples, Sanskrit and English were compared in this. 

You can take any language apart from English, there is no such thing as English but in the paper 'Rick Briggs' has taken English and compared Sanskrit and told all the things. The first thing that has been told is that there is no meaning of order in Sanskrit, no order is needed. Like what happens in English first, the subject will come then the helping verb will come then the object comes, then an order is created and things go wrong. What happens, let's take an example if you say in Hindi that 'Ram jayega'. So what will say in English that 'Ram will go' and if the order is changed to 'will Ram go' then everything will get ruined, means then meaning will change. 

What happened in Sanskrit 'Ram Gachhashyati' now in this if you do 'Gachhashyati Ram' the meaning will not change. The computer will understand that even if the word has changed, its meaning will remain the same. He understood that 'Ram will go'. This is the first very important thing in Sanskrit so the Scholars of Sanskrit do not pay much attention to the syntax, if you read Shloka, Ramayana, Mahabharata, and Vedas, there is nothing like that in it that word comes first or later the meaning will change. Because every word kept a suffix for itself. That's why he gave another example that every word handles more meaning. Like if we take a sentence in Hindi 'Ladke padhyengey' what happens in English 'Boys will read' and in Sanskrit 'Balkaah Pathishyanti'. 

Now 'Pathishyanti' is a word that handles 3-4 things by itself. If you see 'Pathishyanti' it will tell that first, its plural means 'boys' whether there is a subject or not it tells that there will be boys or whoever is the doer is more than one because in it "anti" is coming. Now in this "ashya" is coming means it will be in the future. It is all included in 'Pathishyanti' itself. It told that subject would be plural and it is in the future and by "path" it means 'to read'. The computer hasn't worried about it and in 'Pathishyanti' he is getting three types of information. And what's happening in English we have to apply 'will' and by will understand that it is in the future. And for 'read' we are taking separate verbs and in 'boy' we are adding 's' then there we know it is in the plural. In English, we have to do three different things. And in Sanskrit, you say 'Pathishyanti', and work is done. 

Third, a very important example in which he took the sentence 'John gave the ball to mary' in his research paper, and explain that understanding this sentence is very glitchy. We humans can understand because when sentences are told to us we imagine them. That John will be there, John will have the ball, marry will be there. Then he is holding the ball with his hand, the ball would have moved, and the hand would have moved. After that mary caught the ball, then the ball comes into mary's hand. There are lots of auxiliary actions in it, the main action is giving. But the computer will not be able to understand much from giving and if artificial intelligence has to give feedback on it, then what can it give? He doesn't have too many things so he can't be able to give. Everything is known to humans, as he spoke 'he gave the ball' he understood that the ball will be in his hand, which means he has held the ball. 

His hand must have moved forward, there are mechanics after that mary caught the ball. We are humans we can understand, that's why scientists are facing a problem. The solution was done by the sages. The sages told us that there is "kaarak" in any sentence. And there are seven types of "kaarak", out of which six are the main 'kaarak'. For example, if you have studied Sanskrit, then you would know that 'Karta' - Ne, 'Karm' - Ko, 'Karan' - Se (Ke dwara), 'Sampradan'- Ke liye, 'Apadan' - Se (Alag hone ke liye), then 'Sambandh' comes. These information should be received from a sentence to the computers if it has to understand things well. Now let's see, how from this sentence after applying 'kaarak' we can explain to the computer, and how we can provide extra information which is not there in sentences. For example 'Karta - Ne' Kart means doer, in that john is the doer, he is giving the ball. 'Karm' is the ball, the ball is being given, and it is an object. 'Karan- Se dwara' means why it is being given, out of friendship, it is given. The computer got extra Information that there is something in john and mary due to which he is giving the ball. Then comes 'Sampradan ke liye' means to whom it is giving, for mary. Then comes 'Apadan' means by which it's separating, from where the ball is separating, from the hand. If the computer will go to 'kaarak', the sentence has been given. The computer that has gotten information from the sentence. 

But if it goes from 'kaarak' then it will get extra information. And these things are not understood by scientists, linguistic experts, and coders that how much information the computer needs. Because if you see much information will come out if we can imagine then we will think that both the people can be anywhere in the field, in the stadium, or at their home, then how much information a computer needed. The sages made it easy by telling 'kaarak'. This thing has also been told in a research paper that if the computer understands 'kaarak' then we may get a lot of information. Now the last example is that In English, there is the word 'noun' from that, you can make a verb, adjective, or adverb. For example, there is the word 'beauty' is a noun. Now we have to make a verb then it 'beautify'. Beautify is a verb, an action, then if you did it 'beautifully' it will be an adverb. How it's working? Beautifully, and if we want to make an adjective we will say 'Beautiful'. 

In English nouns can take three types of other forms, but in Sanskrit, they can take seven types of forms. Like the inflections, I told you, these forms get increased. That's why it become easier for the computer, and these inflections cover many things. Because of the compact language of Sanskrit, that's why it has been told in the research paper that if you use it in the interface, then the difficulties of the computer will be reduced because its structure is like this. I hope that you must have understood the things, I have told in this video. There are many things that you may not have understood, but when we do practical in the next part which is going to come, you will understand every single thing that I will tell you about sutras from Panini's Ashtadhyayi and using those sutras we will make different types of grammar rules. And from that grammar, we will try to make new words. It will be fun in the next part. If you liked the video, then definitely share it with your friends and your family. Subscribe to the channel, support us, 377 00:16:04,000 --> 00:16:06,000 and will keep bringing more such videos. With that, here I stop. See you soon in the next part of this episode till then, Jai Shri Ram.

No comments:

Post a Comment