Elamur Research

Punjabi Machine Transliteration

Paper · 2006 · M.G. Abbas Malik

Summary

A Punjabi reader can understand a sentence when it is spoken and still be unable to read it in a familiar language. Punjabi is written in Shahmukhi and Gurmukhi, scripts with different characters, writing directions, and ways of representing sounds. In Punjabi Machine Transliteration, M. G. Abbas Malik sets out to make writing in Shahmukhi accessible to readers of Gurmukhi. The task is to write the same Punjabi words in another script, preserving their pronunciation and meaning as far as the input allows. It applies to ordinary words as well as names and specialist terms.

The system, called Punjabi Machine Transliteration or PMT, combines tables of character correspondences with rules that examine a character’s surroundings within a word. A Shahmukhi letter for the sound [s] can frequently be replaced directly by Gurmukhi ਸ. Other cases require the system to read several characters together. A Shahmukhi consonant followed by a letter that marks aspiration may become a single Gurmukhi letter. A mark that doubles a consonant’s sound must be written on a different side of the consonant in Gurmukhi. Rules for vowels take account of their position in the word and the letters and marks around them. The system processes words individually and assembles the converted words into Unicode text.

Malik reports 98.95% overall word accuracy on an evaluation of 45,420 words drawn from manuscripts, classical Punjabi literature, and modern poetry and short fiction. The modern literature portion has a reported accuracy of 99.39%. People who knew both scripts checked the output with dictionaries. The evaluation input was also prepared with dictionaries to supply the vowel marks needed for conversion. That preparation matters because readers of ordinary Shahmukhi frequently infer vowels that the writing leaves unstated. The paper illustrates the difficulty with a spelling that can mean either wide or bangle, depending on its vowels. The reported accuracy describes conversion from prepared Shahmukhi into Gurmukhi. Conversion in the other direction remained a goal for future work.

Deep dive: Punjabi Machine Transliteration

Punjabi Machine Transliteration uses character mappings and context rules to convert Shahmukhi text to Gurmukhi, with tests on literary Punjabi. · about 31 minutes to read

The problem and its context

One language in different writing systems

Malik starts from a problem of access to Punjabi writing. The paper describes Punjabi speakers in Pakistan and India who can understand one another’s speech yet have difficulty reading the script used by the other community. Text may therefore be inaccessible to someone who would know its words if they heard them. The proposed system tackles the part of this barrier that comes from the spelling system. It gives a reader of Gurmukhi another way to encounter Punjabi written in Shahmukhi, including the historical, literary, and religious writing the paper has in mind.

Transliteration uses the conventions of a target script to represent how a word sounds. Earlier work, as Malik describes it, frequently applies this process across languages. A name can receive a spelling that a reader of the target language can pronounce approximately even when the reader has no idea who the name identifies. In the Punjabi task, Malik expects the reader to recognize the resulting word as part of the language they already know. Meaning is preserved through recognition of that word. The conversion itself has no separate operation that looks up a definition or chooses a lexical equivalent in another language.

This distinction changes the unit of work. A system intended to transfer proper names can be designed around the words selected for that purpose. Malik wants the same procedure to process the words in a passage regardless of their category. There is no need for someone to identify a name, a technical term, or any other kind of word before submitting it. The conditions for conversion come from the characters and their combinations. A passage may still contain a word whose pronunciation needs to be established before conversion, because a missing vowel mark can make the visible spelling compatible with different words.

The direction studied is Shahmukhi to Gurmukhi. Treating this as a directional task is important even though both scripts represent Punjabi. Their spellings do not encode information in the same way. For example, distinct Shahmukhi letters can stand for the same sound and converge on the same Gurmukhi letter. The reader can recover the sound that the letters share from the Gurmukhi representation. The choice among the original Shahmukhi letters may no longer be recoverable from that representation alone. A conversion designed for a reader on one side of this correspondence does not automatically specify the reverse choice.

The structural differences behind the task

Shahmukhi draws its letters from the Arabic alphabet. It is written from right to left and has letter shapes that vary with context. The paper describes Nastalique, the usual style of Shahmukhi writing, as cursive. A letter takes different visual forms according to its position in a word. Gurmukhi runs from left to right and is described as syllabic. Malik traces its character set to Landa, Sharda, and Takri. A vowel in Gurmukhi can have an independent letter or a sign associated with a consonant. These are differences in the internal construction of a written word as well as in its appearance on the page.

The system receives encoded characters, so it can operate on the identity and order of letters within the word. The visible shape of a connected Shahmukhi letter and the identity of that letter in the input serve different purposes. Likewise, a reader sees a Gurmukhi vowel sign in a particular place relative to its consonant, while the conversion procedure must produce the target units that yield that spelling. The change in writing direction is therefore part of the difference between the scripts, but it does not tell the system how to convert a particular vowel, aspirated consonant, or doubled consonant.

The paper treats the sounds of Punjabi as the basis for organizing these differences. For a straightforward correspondence, the two scripts have forms associated with a shared sound. Other sounds are expressed with different numbers or arrangements of characters. In Shahmukhi, a consonant followed by Heh-Doachashmee can represent an aspirated consonant, pronounced with an accompanying release of breath. Gurmukhi gives some of these sounds their own letters and writes others with a joined form of ਹ. A correspondence can thus relate a sequence in one script to a single letter in the other, or require a sequence on both sides.

Vowels introduce another kind of mismatch because some of their distinguishing information is optional in customary Shahmukhi writing. Malik says that in common Shahmukhi books, newspapers, and magazines, writers use diacritical marks sparingly. A diacritic is a mark associated with a letter. In the examples that motivate PMT, the marks tell the reader which vowel to pronounce. A person reading a sentence can draw on the rest of the sentence to interpret a bare spelling. Rules that inspect the letters of a single word work with a narrower kind of context.

This creates two separate tasks for a practical conversion. The first is to determine which Punjabi word the Shahmukhi writing represents. The second is to express that word according to Gurmukhi conventions. In the experiments, dictionary-assisted preparation supplies the marks needed for the first task, and PMT handles the second. Many of the detailed rules deal with issues that remain even when the pronunciation is adequately indicated. A vowel at the beginning of a word still needs the correct Gurmukhi form, and an aspiration marker still needs to be interpreted with its preceding consonant.

How Malik situates earlier work

Malik draws on the account of phonetic correspondence across writing systems in the earlier Machine Transliteration. The paper describes earlier research on transferring words between languages written in different scripts, including work involving Arabic and English. It also cites research concerned with names and technical terms. These examples help explain the traditional emphasis on words whose sound is particularly important to carry across a language boundary. The Punjabi setting keeps that interest in pronunciation and extends the task to running text in the same language.

The paper describes much of the earlier work as serving machine translation, especially in settings involving English and languages such as Arabic or Chinese. A new spelling for a name can be part of a larger translation process. In PMT, the conversion of spellings is the primary operation. The passage remains Punjabi, and the object of the work is a version that the other script community can read. This difference explains why the paper devotes much of its attention to the inventory of sounds and characters across both Punjabi scripts.

Malik also associates earlier transliteration research with cross-language search, where alternate spellings can affect whether a query finds the intended item. The paper places multilingual resource building and other cross-language applications alongside search as contexts for the earlier work. For Punjabi it envisages a corresponding problem across scripts. A user may know a word or a name in one Punjabi spelling system while the material they want to retrieve is written in the other. The conversion system is presented as a possible foundation for such cross-script applications and for information retrieval.

The method, step by step

From a passage to words and back

PMT accepts a passage of Shahmukhi encoded in Unicode. An input parser divides it into word units, which the paper calls tokens. A token here is a word at a particular place in the passage. Two occurrences of the same spelling still enter the process as separate units. The paper calls the parsing technique simple and locates the main transliteration work after this stage. The initial tokenization determines the boundaries within which the conversion rules will inspect characters.

Shahmukhi-to-Gurmukhi conversion in PMT

The steps in order.

Shahmukhi-to-Gurmukhi conversion in PMTStep 1: Read Unicode Shahmukhi text1. Read Unicode Shahmukhi textStep 2: Split the text into word tokens2. Split the text into word tokensStep 3: Inspect characters and their positions within each token3. Inspect characters and their positions within each tokenStep 4: Apply dependency rules and character mappings4. Apply dependency rules and character mappingsStep 5: Collect the converted Gurmukhi tokens5. Collect the converted Gurmukhi tokensStep 6: Assemble the Unicode Gurmukhi text6. Assemble the Unicode Gurmukhi text

The transliteration component sends each word to the token converter. The converter examines its constituent characters and consults the rules manager. The paper assigns the rules manager both the mapping tables and the dependency rules. When a character depends on its neighbours or its place in the token, the converter resolves that dependency. When a character can be converted independently, the associated mapping gives its Gurmukhi counterpart. After the transliteration component has collected the converted tokens, the output generator puts them into a Gurmukhi text encoded in Unicode.

The paper presents the transformation through notation for the input text, its tokens, and the output text built from corresponding tokens. The first relation is between the Shahmukhi passage and its ordered token sequence.

S → (S₁, S₂, …, Sₙ)

S is the Shahmukhi input text. The arrow means that parsing produces the sequence on its right. Parentheses enclose that sequence, and commas separate its members. S₁ identifies the first Shahmukhi token, S₂ the next, and the ellipsis stands for the intervening tokens. Sₙ is the last member, with n denoting how many tokens the parser found.

For a given position, the paper describes the token converter’s work as a mapping between the Shahmukhi word and the Gurmukhi word.

Sᵢ → Gᵢ

Sᵢ is the Shahmukhi token at position i, and Gᵢ is the Gurmukhi token produced for that position. The subscript i locates the same occurrence on both sides. The arrow denotes transliteration through the mapping and dependency rules. The single arrow abbreviates a procedure that may consider several input characters together.

The text generator then works with the sequence of Gurmukhi tokens.

(G₁, G₂, …, Gₙ) → G

G₁ and G₂ are the first converted tokens. The commas separate token positions, the ellipsis represents the intervening outputs, and Gₙ is the last converted token. The parentheses enclose the sequence. The arrow means that the output generator assembles the sequence into the Gurmukhi text G. The n in the last position refers to the same token count as in the input sequence. This notation describes how the units correspond. A corresponding pair of tokens may contain different numbers of characters.

Establishing the basic correspondences

Malik derives the mappings by comparing how Shahmukhi and Gurmukhi represent Punjabi sounds. The paper divides the comparison by type of written material, including consonants, vowels, diacritical marks, and other symbols. The goal of these divisions is to make different problems tractable. For consonants, a common question is which target letter represents the source sound. For vowels, the choice can also depend on the vowel’s position and relationship to a consonant. Digits and punctuation require their own treatment so the converter can process a passage containing more than letters.

Where the correspondence is direct, the rule can use the source character alone. The paper gives the Shahmukhi letter Seen and its Gurmukhi counterpart Sassaa, ਸ, for [s]. It also identifies Seh and Sad as Shahmukhi spellings that represent [s] and reach the same Gurmukhi output. This is a many-to-one correspondence. It preserves the sound that the three letters share in the paper’s analysis. Across an entire word, the rest of the spelling still helps identify the word a Gurmukhi reader sees.

The tables give a starting point even when a particular letter has several uses. Such an entry describes possible outputs or identifies a correspondence for a certain class of appearances. The converter still has to decide whether the current appearance belongs in that class. The framework therefore separates the question of what target spellings are available from the question of when to choose each spelling. The separation is clearest where a familiar consonant-like character can also be part of a vowel spelling.

The paper includes digits and punctuation in its comparison. It describes Shahmukhi punctuation by reference to Arabic conventions and Gurmukhi punctuation by reference to English usage, with a distinction for the full stop. Gurmukhi uses the danda, ।, and the double danda, ॥, as sentence-ending marks in the account Malik gives. Punctuation is relevant even though it lacks a Punjabi pronunciation that the system must preserve. It serves a written function that needs a counterpart in the target text. The paper’s phonetic basis for letter correspondences and its treatment of written symbols thus address different parts of the same passage.

Reading aspirated consonants as units

The aspiration rules show why the converter must be able to recognize combinations. In Shahmukhi, Heh-Doachashmee after a consonant can mark its aspirated pronunciation. At that location it participates in the spelling of the preceding sound. For the often used aspirated forms, the equivalent Gurmukhi spelling is a dedicated character. The table gives ਭ for [bʰ] and ਝ for [ʤʰ]. In each example, an input consonant and its aspiration marker have to be considered together to obtain the target letter.

If the converter committed to outputting the plain consonant as soon as it saw its first character, it would miss the information carried by the following marker. The dependency is therefore partly a question of how much of the input to consider at once. The rule needs to recognize that both source characters belong to the same correspondence. Once those characters have been read together, the converter can continue at the next part of the token without processing the aspiration marker again as though it stood alone.

For less frequent aspirated consonants, Gurmukhi can use a form of ਹ joined beneath the preceding consonant. Malik calls this subjoined form Paireen Haahaa. The paper explains the spelling in terms of a base consonant, a subjoiner, and ਹ. The subjoiner signals that the following ਹ is to take the joined form. The paper uses the bases ਲ and ਵ to illustrate the construction. The sequences on the input and output sides both express aspiration, but each script allocates the work differently among its characters.

Gurmukhi also has subjoined forms of Vaavaa and Raaraa in the paper’s description. Malik associates those forms with rare uses in Sanskrit loanwords and observes that ordinary ਵ and ਰ are replacing them in current writing. For the aspiration operation, the relevant subjoined form is Haahaa. The system uses it when the Shahmukhi aspiration marker follows one of the less frequent aspirated consonants under discussion. This part of the method reflects the distinction the paper draws between an inventory of available written forms and the forms selected for ordinary conversion.

Putting a consonant-doubling mark in the right place

The rules for Shadda and Addak illustrate another reason to process the characters around a consonant jointly. Both marks indicate that the consonant sound is doubled. The relevant Shahmukhi mark is Shadda, which the paper treats as coming after its consonant in the source sequence. Its Gurmukhi equivalent, Addak, is placed before the corresponding consonant. In the example for [pp], the Gurmukhi output uses Addak followed by ਪ.

A converter that found the correct Gurmukhi equivalent for every character and emitted each equivalent in the same relative order would still get this case wrong. It would have identified the right consonant and the right mark, but their relationship in the target spelling would be incorrect. The rule handles the source consonant and the mark together so it can emit the spelling in the order Gurmukhi uses. This is a different problem from aspiration, where the result may be a dedicated single letter. Doubling retains both a consonant and a mark, with a change in their order.

During the consonant operation, Shadda receives special attention. The paper leaves other diacritics to vowel or diacritic rules at the stage appropriate to their function. This division matters because the next character in the input can be relevant to different parts of pronunciation. A mark that modifies the length of a consonant and a mark that tells the converter which vowel to use may both be written in association with a consonant. They require different decisions about the target spelling.

Malik also identifies consonants and other characters that need treatment outside the general consonant rule. They include such cases as Vav and the Yeh letters. Their roles elsewhere in the vowel analysis give a reason for care when they are encountered in the input. The general correspondence provides a way to handle straightforward consonants. The exceptions reserve characters whose output may depend on information that a lookup for the consonant sound alone would overlook.

Locating a vowel and choosing its written form

The paper distinguishes independent Gurmukhi vowel characters from dependent vowel signs. At the start of a word, a vowel uses an independent character. An independent character can also be used later when the vowel is separate from a consonant. A vowel associated with a consonant uses a dependent sign. Thus the converter needs to identify both the vowel sound and the role of that vowel in the word. The same sound may have different written outputs according to that role.

For [ɑ], the Shahmukhi description distinguishes Alef Madda at the beginning of a word from Alef in a medial or final position. Gurmukhi has independent ਆ and dependent ◌ਾ. In the sign notation, the dotted circle shows the position occupied by a consonant when the sign is used in a word. It lets the sign be displayed in isolation. The paper illustrates the independent form with ਆਦਮੀ, glossed as man, and the dependent form with ਜਾਵਣਾ, glossed as go. The pair shows why an entry for [ɑ] needs more than a single output character listed against the sound.

An initial vowel can also require a sequence on the Shahmukhi side. Malik describes short [ɪ] at the beginning of a word as Alef with Zer, and medial [ɪ] as Zer with a consonant. Gurmukhi can represent the former with ਇ and the latter with the sign ਿ◌. The paper gives a similar positional account for short [ʊ], which uses Pesh in Shahmukhi and corresponds to the independent ਉ or the dependent ◌ੁ in Gurmukhi. In these cases neither the letter carrying the mark nor the mark in isolation gives the whole explanation for the output.

Position can also affect which Shahmukhi letter is used to write the vowel in the first place. Malik describes three ways to spell [e] depending on its place in a word. At the start it takes Alef with Choti Yeh, in the middle it takes a consonant with Choti Yeh, and at the end it takes a consonant with Baree Yeh. The target spelling employs ਏ or ◌ੇ, as appropriate. The output rule must recognize that changes in the Shahmukhi spelling can track position while the vowel itself remains the same. The converse also occurs. The same Shahmukhi letter can require distinct treatment when it takes on a different role within another combination.

The analysis of Vav shows how a written mark can distinguish vowel readings that otherwise have much in common. Malik describes [u] in combinations that include Pesh and Vav. The description of [o] uses Vav without Pesh, and the description of [Ɔ] uses Vav with Zabar. The initial forms have Alef as well. On the Gurmukhi side these vowels have corresponding independent forms and dependent signs. A decision about Vav therefore depends on its place in a larger spelling. A neighbour or a diacritic can determine whether Vav represents a vowel, which vowel it helps represent, or whether it has the consonantal value shown in the mapping table.

The paper organizes these correspondences through a table of vowel outputs and a separate analysis of positional spellings. The first helps identify the target writing when the relevant combination has been recognized. The second helps explain how to recognize the combination in a word. These descriptions make the vowel operation more precise than a rule to substitute one alphabet for another. The converter has to read the available evidence about vowel identity and choose a written form that fits the word structure of the target script.

Using the characters after Hamza

Hamza provides the paper’s clearest explicit set of conditional rules. Malik describes it as a placeholder between vowel sounds in Shahmukhi. Its treatment depends on what follows it. The converter reads Hamza with Choti Yeh as ਈ, and Hamza with Baree Yeh as ਏ. With Zer it produces ਇ, and with Pesh it produces ਉ. The outputs are independent Gurmukhi vowels. Each condition identifies a local character combination and specifies what to emit for the combination.

The paper also specifies a default. When the following character does not match the listed conditions, Hamza is converted to ਇ. One motivating example is the word glossed as comfort. In Malik’s analysis the short vowel indicated by Zer may be written after Hamza in this word, but writers commonly omit the mark. The default supplies the [ɪ] reading in the example when Hamza is followed by a consonant. It accounts for an omission whose interpretation the paper encodes directly as a rule.

The default is local to Hamza. It illustrates how a rule can cover a recurring spelling convention with the aid of a particular written cue. In the example about wide and bangle, the same undiacritized word spelling supports different interpretations in different sentences. A fixed fallback for that spelling could return the same result on every occurrence, even though readers would distinguish the words. Hamza shows the value of a targeted rule for a specified context, while the pair of ambiguous words shows how much depends on the information available in the token.

Following a word through the converter

The paper traces one word through the conversion procedure to illustrate how independent mappings and dependency rules share the work. Its input contains, in order, Vav, Alef, Lam, Choti Yeh, another Alef, and Noon Ghunna. The first Vav has the consonantal reading [v] in this token, so it begins the output as ਵ. The following Alef is treated under the Alef rule. It supplies the dependent sign ◌ਾ, which yields ਵਾ. The Lam then maps to ਲ, giving ਵਾਲ at that stage.

The next part is processed under the Yeh rule. Choti Yeh and the following Alef contribute the short vowel sign attached to the preceding consonant and an independent ਆ. This shows how one unit of the conversion can affect different positions in the target spelling. Part of its output belongs with the consonant already produced, and part can stand on its own. The converter then handles Noon Ghunna using its contextual rule and writes the nasal mark ◌ਂ. The completed Gurmukhi word is ਵਾਲਿਆਂ.

The example also shows why a letter’s treatment should be explained at the point where it occurs. Initial Vav can take a straightforward consonant mapping in this word even though Vav figures prominently in the paper’s vowel rules. The earlier Alef contributes a dependent sign. Later, an Alef participates in the result of a combination handled under the Yeh rule. Calling both appearances instances of one source letter leaves open the question of what the converter does with them. The trace answers that question by following the role of each occurrence.

Finally, the example shows what the architecture’s description of a token converter amounts to in practice. The parser passes along the whole word, so the converter has access to the positions of its characters and can recognize combinations. The transliteration component receives the word only after those local decisions have been made. The output generator can then preserve the sequence of words while using target spellings whose internal construction differs from the source.

Where the rules and the input come from

PMT is built from the paper’s linguistic comparison of the scripts. Malik sets out correspondences by considering how marks, consonants, and vowels represent Punjabi pronunciation, and encodes positional cases as rules. The paper reports no statistical training on paired texts. When the system encounters a word, its procedure depends on the spelling presented to the converter and the applicable entries or rules. Words from different parts of the evaluation are processed by that same procedure.

There is a separate data preparation process for the evaluation. Malik selected writings that had to be compiled into Unicode and then used dictionaries to supply the diacritics required for the intended pronunciations. This is work on the input the program receives. It can change how much pronunciation information the visible Shahmukhi spelling contains. The system’s handling of marked input and the preparation that makes the marks available are consequently distinct parts of the experimental setup.

The distinction also helps explain the paper’s general claim that the procedure can be applied regardless of the type of word. General rules and mappings can process a word by inspecting its characters, including combinations shared with other words. The quality of each result still depends on whether the spelling makes the intended reading available and whether the rules capture the relevant script conventions. In the experiment those issues are addressed partly by the prepared input and in part by the converter. The two roles meet when the rules interpret the added marks as part of the word.

Experiments and results

What was selected for evaluation

The evaluation draws on literary material chosen to cover historical, regional, and modern writing. To include a historical component, Malik selected a manuscript containing poetry by Maqbal and a manuscript of Heer by Waris Shah. The results combine the manuscripts into a single category. The paper also includes a Waris Shah category among the classical literature groups. The manuscript category and the Waris Shah category are separate entries in the reported results, even though Waris Shah’s writing appears in the account of both selections.

For regional representation, Malik associates the classical selections with the major Punjabi dialects of eastern, central, southern, and northern Punjab. The paper uses hymns of Baba Nanak for the eastern selection and Heer by Waris Shah for the central selection. The southern selection comes from hymns by Khawaja Farid, and the northern selection from Saif-ul-Malooq by Mian Muhammad Bakhsh. The group labels in the results identify sources. They should be read in light of the particular material chosen to represent each region.

The modern material consists of poetry and short stories. Malik drew it from issues of the Punjabi magazine Puncham and from other published books. The paper gives the modern material its own evaluation row. That separation allows a reader to see how the same conversion procedure performed on the chosen modern writing and on each of the classical selections. Genre, period, author, and source all contribute to what those groups contain.

These are categories within the evaluation. The system’s rules come from the script analysis, and the paper gives no training and test partition of these sources. The counts in the results refer to words evaluated after preparation. They measure how much text went into each category, instead of the number of distinct spellings, manuscript items, or dictionary entries the system used.

Preparing and checking the text

The selected material had to be compiled in Unicode before it could be passed to the parser. According to the paper, the selections were unavailable in that form. Establishing an encoded text made it possible to identify the individual characters and combine them with marks in the program’s input. It also allowed the same conversion and output procedure to be used across the different kinds of writing.

After compilation, the necessary marks were inserted with the aid of dictionaries. Their purpose was to make the pronunciations available to the converter. In a comparison of the results across source groups, this step is part of the condition shared by the groups. A result on the manuscript material measures the conversion of the prepared manuscript selection, just as the modern result measures the conversion of the prepared modern selection. Ordinary publication practice is relevant to how much preparation would be needed before applying PMT to texts as readers typically encounter them.

The resulting Gurmukhi texts were checked by people who knew both scripts. They consulted Shahmukhi and Gurmukhi dictionaries while checking for errors. The paper reports accuracy for words and gives each source category’s word count. A row consequently says how the converter fared in the manual assessment of words for that group. The paper leaves the detailed judgments on individual words out of the results.

The paper reports one system on these selections. A simple character lookup is a useful point of reference for understanding the method, because some of the examples show exactly where lookup would leave a decision unresolved. It has no separately measured accuracy in the experiments. The numerical comparison is among source groups processed by the complete PMT system.

Accuracy across the selected sources

The total evaluation contains 45,420 words and has a reported word accuracy of 98.95%. The modern literature category contains 16,736 words. The Waris Shah category contains 14,225 words, and the Mian Muhammad Bakhsh category contains 7,245 words. The Baba Nanak selection contains 3,918 words, the Khawaja Farid selection contains 2,289 words, and the combined manuscript selection contains 1,007 words. These counts give the scale of the material behind each category’s reported accuracy.

PMT word accuracy across the literary evaluation sources

The selected modern literature has the highest reported word accuracy among the source groups.

PMT word accuracy across the literary evaluation sourcesManuscripts: 98.21Manuscripts98.21Baba Nanak: 98.47Baba Nanak98.47Khawaja Farid: 98.25Khawaja Farid98.25Waris Shah: 98.95Waris Shah98.95Mian Muhammad Bakhsh: 98.52Mian Muhammad Bakhsh98.52Modern literature (this paper): 99.39Modern literature (this paper)99.39
The numbers
System or settingaccuracy %
Manuscripts98.21
Baba Nanak98.47
Khawaja Farid98.25
Waris Shah98.95
Mian Muhammad Bakhsh98.52
Modern literature (this paper)99.39

The manuscript group has a reported word accuracy of 98.21%. The Baba Nanak and Khawaja Farid selections reach 98.47% and 98.25% respectively. The results for Waris Shah and Mian Muhammad Bakhsh are 98.95% and 98.52%. The modern selection reaches 99.39%. As the paper notes, its classical material is above 98% and its modern material above 99%. The overall figure describes all 45,420 words under the preparation and checking procedure used in the experiment.

Taken together, the rows show that the conversion worked to a high reported level of accuracy across different selected texts. This matters because a worked word can show that several rules cooperate successfully in one instance, whereas the evaluation asks the converter to keep doing so throughout passages from different sources. The source rows broaden the evidence beyond the worked examples. They have a limited role in explaining an individual success or failure, because each percentage combines all the words assessed within the source group.

The reported advantage for modern literature is a description of the selected material. The comparison holds the transliteration procedure in common while the contents of the groups change. The passages differ in source, period, and size, and the paper assigns several of them a regional role. Each difference can matter to how a row is read. The results do not isolate vocabulary, editorial conventions, or the distribution of character combinations as an explanation for the ordering. The conditions that are clear are the direction of conversion, the preparation of the input, and the dictionary-assisted manual evaluation.

What the ablations show

The paper offers source-by-source results and worked analyses of spelling dependencies, with ablations and controlled comparisons of system settings absent from the evaluation.

An ablation would ask what happens when part of the converter is removed or changed and the resulting system is assessed on the same material. The word trace answers a different question. It identifies the contribution of a particular mapping or rule at a particular point in the conversion. For example, the trace makes it possible to see which part of the output came from the Alef rule and which required recognition of the Yeh combination. It gives a reader a way to inspect the design even though it leaves the effect of either rule on overall accuracy unmeasured.

Aspiration and gemination show different dependencies. With aspiration, two input characters may have to be interpreted as a single sound before the target spelling can be chosen. With gemination, the mark expressing the doubled sound needs to appear before the corresponding consonant in the target spelling. The examples explain why an independent, same-order substitution of characters would be inadequate for these constructions. The paper establishes the need in the examples through the spelling analysis. It gives no corpus counts for how frequently the constructions occur or how many errors any particular rule prevents.

The vowel discussion adds a distinction between context used to select a spelling and context used to infer a word. The dependent vowel sign appropriate to a consonant can be selected once the converter identifies the vowel in the input. A word with an unmarked contrast may require information about the sentence to identify the vowel in the first place. In the paper’s pair for wide and bangle, the bare spelling is shared, but the pronunciations are [ʧɔɽi] and [ʧuɽi]. Zabar after Cheh supplies the distinguishing mark in the example meaning wide, and Pesh supplies it in the one meaning bangle. The paired examples demonstrate exactly what the added marks make available to a token-level converter.

The Hamza analysis shows a narrower case where the procedure can handle an omitted mark through a stated default. The paper’s explanation of comfort identifies a specific spelling context and supplies a particular reading. An overall experiment with and without that fallback could reveal how frequently it helps and where it introduces errors. The paper instead explains the expected effect in the case that motivates the rule. Its analytical examples vary the feature a reader is asked to attend to, while the reported evaluation uses the complete set of rules and prepared inputs.

The rows for manuscripts, classical authors, and modern literature also offer a form of comparison, with source as the changing factor. They indicate that the complete procedure attains high reported accuracy in each selection. Because the source collections differ in several respects at once, the rows leave open which properties drive their ranking. The higher modern result may motivate questions about the spellings in those texts, but the experiment cannot distinguish a spelling effect from other features of the selection.

The paper’s evidence for the design thus has two different scales. At the level of particular words, the examples explain why the converter needs multi-character rules, positional information, or input marks. At the level of whole selections, the results show how the combined procedure performed on prepared material. The link between those scales remains unquantified. A reader can follow how a rule solves its example and see the performance of the complete system, while the effect of that rule on the evaluation remains open.

Limitations

Conditions the author states

Malik makes the presence of the necessary Shahmukhi diacritics a condition for attaining the reported accuracy. He says that missing marks substantially affect performance. The linguistic analysis explains why through examples of a written form carrying different vowel readings in different sentences. A dictionary-assisted preparation step can provide the intended distinctions in an evaluation input. In everyday writing, a reader often supplies them by interpreting the sentence.

The reliance on diacritics has direct implications for the scope of the result. Applying the converter to prepared material starts from many of the pronunciation decisions already expressed in the spelling. Applying it to unmarked material can require those decisions before a Gurmukhi word can be written correctly. The performance of the complete preparation-and-conversion workflow therefore answers a different question from the performance of PMT on Shahmukhi text taken as it occurs in ordinary publications. The reported percentages are for the former condition.

The paper characterizes its dependency-rule discussion as selective. It explains representative consonant and Hamza rules and gives a detailed account of vowel correspondences, but space limits the set of rules described. The worked word refers to the Alef, Yeh, and Noon Ghunna rules, for instance. It illustrates specific decisions made by them without spelling out all of their conditions. The description supports an understanding of the architecture and the rule types. It leaves the complete implementation of the rule inventory unspecified.

Malik also identifies back transliteration from Gurmukhi to Shahmukhi as future work. This is a separate conversion direction with its own choices. One obstacle is visible in the forward consonant table. Since Seh, Seen, and Sad can all produce ਸ, a reverse step given only ਸ has several possible Shahmukhi letters to consider. A reader can infer from that example why a reverse converter requires a way to select among spellings even if its sound correspondences draw on the same comparison of the scripts. The paper’s evaluation stays with the direction its rules were designed to handle.

Limits visible in the experiment

The paper gives no parallel accuracy figure for the same selections with diacritics left as they ordinarily appear. The discussion of wide and bangle demonstrates that omission can matter, and the author warns of a substantial effect. Neither supplies a quantitative estimate of the effect across the evaluation. The accuracy table therefore offers no way to recover the expected rate for unprepared magazine text, unmarked archival material, or any particular level of omission. The preparation condition belongs alongside the reported accuracy whenever the result is used to characterize the system.

The scope of context is another limit of the architecture. The rules resolve dependencies among the characters and positions within a token. In the ambiguous pair, the useful evidence is the sentence in which that token occurs. If the parser provides the same unmarked word to the converter on both occasions, the procedure as described has the same local input for both. It has no stated step that uses surrounding words to decide the interpretation. A fixed fallback may cover a known case, as with Hamza, but does not supply an assessment of sentence-level disambiguation.

The use of dictionaries in preparation and checking is described, but the details of the checking protocol are sparse. The paper identifies the qualifications of the people doing the checking and the resources they used. It leaves open how they resolved disagreements or how they treated a word admitting more than one acceptable Gurmukhi spelling. Since it reports aggregate accuracy by source, a reader cannot use the results to distinguish disagreements over spelling from failures to identify the intended sound or apply a rule.

The reported evaluation also has no breakdown by error type. For instance, an error could arise in recognizing a character combination, interpreting an insufficiently marked vowel, or writing the corresponding target form. The system’s architecture makes these possibilities distinguishable in principle, but the overall accuracy for a source group combines the outcomes. It is therefore possible to judge the reported success of the complete procedure without being able to identify the most consequential remaining source of error.

The literary selections give the study breadth across periods and authors within its intended setting. Their selection for historical and regional coverage still leaves the generalization question open. A classical selection associated with a region shows performance on those words under the preparation procedure. It yields no separate estimate of the accuracy for other writing from the region. Likewise, the modern row applies to the selected poetry and short stories. The paper offers different kinds of literary evidence without presenting the corpus as a sample from which to estimate performance on all written Punjabi.

The author describes the program as fast and suggests uses in communications applications. The experiments report word accuracy. They provide no timing measurements for parsing, rule application, or output generation. Manual preparation is also part of the work needed for the reported condition, and the paper does not measure that work. The measured evidence concerns the accuracy of converting the prepared texts. Claims about throughput or the effort of operating the whole workflow remain unevaluated.

Finally, the claim about preserving meaning has a practical scope. When the prepared input identifies the intended word, rendering its spelling in the other script allows a reader of that script to recognize it. The paper evaluates the produced words through manual checking. It presents no separate assessment of comprehension by readers, the accessibility of whole passages, or the effects of using PMT in search and communication. Those are uses the author envisages for the conversion. The evidence presented for them is the feasibility of producing Gurmukhi text under the tested conditions.

What came after

Hindi Urdu Machine Transliteration using Finite-State Transducers (2008) cites the Punjabi paper and takes up machine transliteration for Hindi and Urdu. The later title names finite-state transducers as its approach. A finite-state transducer represents a conversion in terms of a limited set of states and transitions that relate input to output. For script conversion, the relevant question is how much information about the preceding or neighbouring symbols must be represented to choose what to write.

The connection is clearest at the level of that question. The Punjabi paper specifies individual decisions in terms of letter combinations, word position, and diacritics. For example, reading a consonant followed by an aspiration marker can determine a single output letter. Reading Hamza followed by one of several characters can select among independent vowels. Such decisions illustrate the kind of local input-to-output dependence that can be expressed in a finite-state account. The later title identifies a formal approach to transliteration for a different language pair. The citation establishes that the later work engages with the earlier Punjabi research, while the title leaves the specific rules, data, and results of that engagement unspecified.

The Punjabi paper itself ends by envisaging a reverse conversion between the same two Punjabi scripts. The later work concerns Hindi and Urdu, so it is evidence of the continuation of research on script conversion through a different pairing and a named formalism. The earlier study’s concrete contribution remains its account of what Shahmukhi spelling must make available for a rule-based converter to produce Gurmukhi, and its measurement of that procedure on literary text prepared to supply the necessary information.

Cite

Cite as M.G. Abbas Malik. 2006. Punjabi Machine Transliteration. Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/1220175.1220318

@inproceedings{abbas2006punjabi,
  title = {{Punjabi Machine Transliteration}},
  author = {M.G. Abbas Malik},
  booktitle = {Proceedings of the 21st International Conference on Computational Linguistics and 44th Annual Meeting of the Association for Computational Linguistics},
  year = {2006},
  doi = {10.3115/1220175.1220318},
  url = {https://doi.org/10.3115/1220175.1220318}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/malik-2006-punjabi-machine-transliteration/