How Roman letters become Devanagari
Devanagari records sounds that Roman typing leaves out, so a converter has to decide three things for every word.
- Vowel sign or full vowel letter. After a consonant a vowel is written as a sign attached to it (क + ा = का); at the start of a word or after another vowel it is a full letter (आ). The converter knows which position each vowel is in.
- The hidden “a”. Every Devanagari consonant already carries a short a, so “kamal” is just three letters, कमल, with no vowel signs at all. A typed final “a” almost always means a long one: “karna” is करना.
- Joined or separate consonants. When two consonants meet, Hindi sometimes joins them (प्यार, क्या) and sometimes writes them apart because the short a between them is silent in speech (करना, समझना). The converter tries both and keeps the spelling that is a real Hindi word.
The word list behind those decisions comes from Hindi Wikipedia and film subtitles, about 90,000 words with a count of how often each is used, so a common word beats a rare one with a similar spelling. About 180 frequent words have fixed spellings, covering some 400 ways of typing them: hai, he and h give है; nahi, nahin and nhi give नहीं. After words like kaha or pata hai, “ki” becomes कि (that) instead of की (of).
Roman Hindi examples and the Devanagari they become
These are real results from the converter, unedited.
mujhe hindi bahut pasand hai.मुझे हिंदी बहुत पसंद है।
kal raat baarish hui aur sadkon par paani bhar gayaकल रात बारिश हुई और सड़कों पर पानी भर गया
doctor sahab ne kaha ki dawai samay par lenaडॉक्टर साहब ने कहा कि दवाई समय पर लेना
Note the details: सड़कों gets the dotted ड़ although only a plain "d" was typed, the loanword डॉक्टर has the open o sign, and "ki" after "kaha" is कि.
Everyday Hindi messages in Devanagari
Greetings and short messages people send every day, each exactly as the converter writes it.
| Roman Hindi, as typed | Hindi |
|---|---|
| namaste | नमस्ते |
| aap kaise hain? | आप कैसे हैं? |
| main theek hoon, dhanyavaad | मैं ठीक हूँ, धन्यवाद |
| subh prabhat | शुभ प्रभात |
| shubh ratri | शुभ रात्रि |
| janamdin mubarak ho | जन्मदिन मुबारक हो |
| diwali ki hardik shubhkamnayein | दिवाली की हार्दिक शुभकामनाएँ |
| ghar pahunch kar batana | घर पहुंच कर बताना |
| kripya dhyan dein | कृपया ध्यान दें |
| koi baat nahi | कोई बात नहीं |
Typing habits that save corrections
- Double a letter for a doubled sound. “patta” gives पत्ता and “pata” gives पता; “billi” gives बिल्ली.
- Use aa, ee and oo when a word comes out short. “kam” is कम (less) and “kaam” is काम (work).
- Type ri for the Sanskrit vowel. “kripya” gives कृपया.
- Keep the n of nasal sounds. “hain” gives हैं and “kahan” gives कहाँ.
- Tap once, fixed everywhere. When you pick a spelling for a word, every other use of that Roman word in your text changes too.
Hindi, Urdu and Sindhi from the same keyboard
Roman typing is shared across the region, and the same habits work in three scripts. The Roman Urdu to Urdu converter writes everyday Hindustani in Urdu script, the Roman Sindhi to Sindhi converter handles Sindhi with its extra letters, and the Gurmukhi ↔ Shahmukhi converter moves Punjabi between its two scripts. Why Roman spellings vary so much, and when the proper script is expected instead, is explained in the guide Roman Urdu vs Urdu script; the same points apply to Roman Hindi.