Elamur Research⌕
☰
home / papers / 2010 / Transliterating Urdu for a Broad-Coverage Urdu/Hindi LFG Grammar

Transliterating Urdu for a Broad-Coverage Urdu/Hindi LFG Grammar

Paper · 2010 · Muhammad Kamran Malik, Tafseer Ahmed, Sebastian Sulger et al.

Summary

The authors want a single LFG grammar to serve both Urdu and Hindi. The two languages share nearly all syntax and vocabulary but are written in different scripts: an Arabic-based script for Urdu and Devanagari for Hindi. Their solution is to convert each script into one shared, case-sensitive Roman transliteration scheme, so that one finite-state morphology and one XLE grammar can sit downstream of both. This paper covers the Urdu side. It is a cascade of standalone C++ modules:

  • Unicode normalization to composed characters
  • dictionary-based restoration of the usually omitted vowel diacritics (aerabs)
  • conversion to the UZT encoding standard
  • context-sensitive transliteration rules compiled with XFST

The rules deal with letters that act as either consonant or vowel, with nasalization and aspiration markers, and with Arabic/Persian loan letters that share one sound. The authors tested on 1000 frequent words. Accuracy was 99.5% on fully diacritized text and 92.5% when undiacritized and foreign words were included. The transliterator is wired into the Urdu ParGram pipeline, which makes later Hindi support cheap.

Key points

  • The pipeline has four stages: Normalization → Diacritization → Unicode-to-UZT (Urdu Zabta Takhti) → Transliteration, with the last stage compiled as an XFST finite-state machine. Each stage can also be used as a separate tool.
  • Diacritization looks words up in the CRULP lexicon of about 80,000 diacritized Urdu words. When a word has several entries, the first one is taken, which can lose the correct reading.
  • Loan letters that all sound like /z/ are kept apart as z, z2, z3, z4, with the most frequent letter getting plain z. Case marks the dental/retroflex contrast (t vs T). N marks nasalization and H marks aspiration. The vowel inventory of the scheme comprises 3 short vowels and 8 long ones.
  • The test set was 1000 unique high-frequency words from an 18-million-word news corpus (Jang, BBC Urdu), checked by hand. Results were 99.5% on fully diacritized input and 92.5% on input with non-diacritized and foreign words.
  • In XLE, the output then goes through tokenization, the XFST morphology (e.g. gARI+Noun+Fem+Sg) and the ParGram-style C- and F-structures. A known limitation is that the C++ cascade only runs one way, so generation is blocked. The proposed fix is to reimplement it as an FST.

Interesting ideas

  • I1. Map two different scripts onto one shared abstract representation so that a single morphology and grammar can serve both languages, instead of building two parallel analyzers.
  • I2. When several written forms collapse to one sound, keep them distinct with numbered variants (z, z2, z3) rather than merging them. The default letter stays readable and the original spelling can still be recovered.
  • I3. Normalize all input to one canonical form (composed Unicode) before any rules run, so no rule has to be written twice for equivalent encodings.
  • I4. The authors note that picking the first lexicon match loses information. Their suggested improvement is to carry all candidate forms forward and let morphology and syntax choose between them.
  • I5. Build the cascade as finite-state transducers, which run in both directions, so the same rules can analyze and generate.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (back): translation through the meta-world could use the same principle, with surface-specific front ends feeding one shared intermediate layer so that downstream reasoning is written only once.
  • I2 (tokens): when normalizing spelling variants or Unicode look-alikes, keep a variant index on the normalized token so lemmas stay clean but the original surface form can be restored exactly for explanations or generation.
  • I3 (tokens): apply NFC-style normalization plus quote, dash and apostrophe canonicalization before the tokenizer, so tokenizer and morphology rules see a single form.
  • I4 (tree): pass ambiguous lemma or tag lattices into the parser rather than committing early, and record which later stage settled the ambiguity, keeping the decision explainable.
  • I5 (back): writing normalization and morphology as invertible mappings would let the text → graph → text compressor reuse analysis rules for surface realization.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

Also on the byline: University of the Punjab · National University of Computer and Emerging Sciences.

 Fields, topics and concepts

Cite

Cite as Muhammad Kamran Malik, Tafseer Ahmed, Sebastian Sulger, Tina Bögel, Atif Gulzar, Ghulam Raza, Sarmad Hussain and Miriam Butt. 2010. Transliterating Urdu for a Broad-Coverage Urdu/Hindi LFG Grammar. Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10).

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

@inproceedings{malik2010transliterating,
  title = {{Transliterating Urdu for a Broad-Coverage Urdu/Hindi LFG Grammar}},
  author = {Muhammad Kamran Malik, Tafseer Ahmed, Sebastian Sulger, Tina Bögel, Atif Gulzar, Ghulam Raza, Sarmad Hussain and Miriam Butt},
  booktitle = {Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10)},
  year = {2010},
  doi = {10.63317/3bowtkpgmbr3},
  url = {https://doi.org/10.63317/3bowtkpgmbr3}
}

References

12 references, 1 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Kenneth Beesley and Lauri Karttunen. 2003. Finite State Morphology . CSLI Publications, Stanford, CA. find
  2. Tina Bögel, Miriam Butt, Annette Hautli, and Sebastian Sulger. 2007. Developing a finite-state morphological analyzer for Urdu and Hindi. In Proceedings of the Sixth International Workshop on Finite-State Methods and Natural Language Processing , Potsdam. find
  3. Miriam Butt, Tracy H. King, Marı́a-Eugenia Niño, and Frédérique Segond. 1999. A Grammar Writer’s Cookbook . CSLI Publications. find
  4. Miriam Butt, Helge Dyvik, Tracy H. King, Hiroshi Masuichi, and Christian Rohrer. 2002. The Parallel Grammar project. In Proceedings of COLING-2002, Workshop on Grammar Engineering and Evaluation , pages 1–7, Taipei.
  5. Dick Crouch, Mary Dalrymple, Ronald M. Kaplan, Tracy Holloway King, John T. Maxwell III, and Paula Newman, 2008. XLE Documentation . Palo Alto Research Center. find
  6. Mary Dalrymple. 2001. Lexical Functional Grammar . Academic Press. find
  7. Sarmad Hussain and Muhammad Afzal. 2001. Urdu computing standards: Urdu zabta takhti (uzt) 1.01. In Proceedings of the 2001 IEEE International Multi-Topic Conference , pages 223–228. find
  8. Sarmad Hussain. 2004. Letter-to-sound conversion for Urdu text-to-speech system. In Proceedings of COLING-2004, Workshop on Arabic Script Based Languages , Geneva, Switzerland. find
  9. Sarmad Hussain. 2008. Resources for Urdu Language Processing. In Proceedings of the 6th Workshop on Asian Language Resources , IIIT Hyderabad. find
  10. Madiha Ijaz and Sarmad Hussain. 2007. Corpus based Urdu lexicon development. In Proceedings of the Conference on Language and Technology 2007 (CLT07) , University of Peshawar, Pakistan. find
  11. Ronald M. Kaplan, John T. Maxwell III, Tracy H. King, and Richard Crouch. 2004. Integrating finite-state technology with deep LFG grammars. In Proceedings of ESS-LLI, Workshop on Combining Shallow and Deep Processing for NLP . find
  12. Abbas Malik. 2006. Hindi Urdu machine transliteration system. MSc Thesis, University of Paris 7. Unicode Urdu character H . H   H  H  H h . h  h p find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/malik-2010-transliterating-urdu-broad-coverage-urdu/