The kaṭapayādi (कटपयादि) system of encoding numbers as words by substituting each digit by a character was developed in ancient India. Each of the क, ट, प, य characters are assigned the number 1. The successive characters are assigned the numbers 2, and so on, thus giving rise to the name कटपयादि. Multiple characters can be mapped to the same number, however there is only one number for each character. Thus, the system allows a number to be represented in multiple ways. A nice word or a phrase is generally chosen such that it is easier to remember.
The system has been traditionally used to encode values of important numbers. A famous example of this is
~ सद्रत्नमाला (शङ्करवर्मणः)
Verse from sadratnamālā (सद्रत्नमाला), given on the front page, describes the method to be followed.
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
---|---|---|---|---|---|---|---|---|---|
क | ख | ग | घ | ङ | च | छ | ज | झ | ञ |
ट | ठ | ड | ढ | ण | त | थ | द | ध | न |
प | फ | ब | भ | म | - | - | - | - | - |
य | र | ल | व | श | ष | स | ह | ळ | - |
You can read more about the Kaṭapayādi system on Wikipedia.
The Decode tab will let you calculate the Kaṭapayādi number for any Devanagari text.
There is no definite answer to this question. There can be multiple encodings for a same number and multiple ways of obtaining it. For each number, possible set of letters is fixed. A naive way can be to choose a random consonant from this set for each number, combine it with a random vowel and put them in a proper order. This, while generating a correct encoding, will often provide meaningless sequences, remembering which is not going to be any easier.
We follow a data drive approach. We have built an inverted index of numbers to possible-words from various Sanskrit texts. Given a number, we evaluate its partitions. The inverted-index is queried to find possible words or phrases for each partition. A random word or phrase from the possible options is chosen and these words or phrases are combined in an appropriate manner. Although the sentence as a whole might not make sense, at least it will be a collection of valid words since the words come from existing Sanskrit texts. We are working on making the sentences meaningful.
A maximum of 10 results are shown. You can re-submit to explore other possible options. You can select corpora from which the words should be chosen to produce the encoding. Not selecting any corpus would make the system search in all available corpora. You can use + for deselecting or selecting multiple options.
The Encode tab will show you some of the possible Kaṭapayādi encodings for a given number.
You can also use a different corpus than what we have in our collection. The Upload tab will let you upload a Devanagari corpus of your choice. After uploading a corpus, it will be processed to enhance our inverted-index. Once processed, it will be availble for selection in the Encode tab.