@@ -55,44 +55,44 @@ def phoneme_scan(word):
5555 word = replace_with_phoneme (word , r'th' , (phonemes .CONS_TH ,))
5656 word = replace_with_phoneme (word , r'ck' , (phonemes .CONS_K ,))
5757
58- # Default letters
59- क
60- ख
61- ग
62- घ
63- ङ
64- च
65- छ
66- ज
67- झ
68- ञ
69- ट
70- ठ
71- ड
72- ढ
73- ण
74- त
75- थ
76- द
77- ध
78- न
79- ऩ
80- प
81- फ
82- ब
83- भ
84- म
85- य
86- र
87- ऱ
88- ल
89- ळ
90- ऴ
91- व
92- श
93- ष
94- स
95- ह
58+ # # Default letters
59+ # क
60+ # ख
61+ # ग
62+ # घ
63+ # ङ
64+ # च
65+ # छ
66+ # ज
67+ # झ
68+ # ञ
69+ # ट
70+ # ठ
71+ # ड
72+ # ढ
73+ # ण
74+ # त
75+ # थ
76+ # द
77+ # ध
78+ # न
79+ # ऩ
80+ # प
81+ # फ
82+ # ब
83+ # भ
84+ # म
85+ # य
86+ # र
87+ # ऱ
88+ # ल
89+ # ळ
90+ # ऴ
91+ # व
92+ # श
93+ # ष
94+ # स
95+ # ह
9696
9797 word = replace_with_phoneme (word , "आ" , (phonemes .VOWEL_A ,))
9898 word = replace_with_phoneme (word , "ा" , (phonemes .VOWEL_A ,))
@@ -102,8 +102,18 @@ def phoneme_scan(word):
102102 word = replace_with_phoneme (word , "ग" , (phonemes .CONS_G ,))
103103 word = replace_with_phoneme (word , "घ" , (phonemes .CONS_G ,))
104104 word = replace_with_phoneme (word , "ङ" , (phonemes .CONS_D ,))
105+
106+ word = replace_with_phoneme (word , "च" , (phonemes .CONS_CH ,))
107+ word = replace_with_phoneme (word , "छ" , (phonemes .CONS_JJ ,))
108+ word = replace_with_phoneme (word , "ज" , (phonemes .CONS_J ,))
109+ word = replace_with_phoneme (word , "झ" , (phonemes .CONS_JJ ,))
110+
111+
112+ word = replace_with_phoneme (word , "ट" , (phonemes .CONS_T ,))
113+ word = replace_with_phoneme (word , "ठ" , (phonemes .CONS_TH ,))
114+ word = replace_with_phoneme (word , "द" , (phonemes .CONS_TH2 ,))
115+ word = replace_with_phoneme (word , "ध" , (phonemes .CONS_TH ,))
105116
106- word = replace_with_phoneme (word , "ङ" , (phonemes .CONS_D ,))
107117
108118 word = replace_with_phoneme (word , "ड" , (phonemes .CONS_D ,))
109119 word = replace_with_phoneme (word , "ढ" , (phonemes .CONS_D ,))
@@ -117,7 +127,6 @@ def phoneme_scan(word):
117127 word = replace_with_phoneme (word , "इ" , (phonemes .VOWEL_I ,))
118128 word = replace_with_phoneme (word , "ि" , (phonemes .VOWEL_I ,))
119129
120- word = replace_with_phoneme (word , "ज" , (phonemes .CONS_J ,))
121130 word = replace_with_phoneme (word , "ल" , (phonemes .CONS_L ,))
122131 word = replace_with_phoneme (word , "म" , (phonemes .CONS_M ,))
123132 word = replace_with_phoneme (word , "न" , (phonemes .CONS_N ,))
@@ -131,7 +140,6 @@ def phoneme_scan(word):
131140 word = replace_with_phoneme (word , "र" , (phonemes .CONS_R ,))
132141
133142 word = replace_with_phoneme (word , "स" , (phonemes .CONS_S ,))
134- word = replace_with_phoneme (word , "ट" , (phonemes .CONS_T ,))
135143 word = replace_with_phoneme (word , "अ" , (phonemes .VOWEL_U ,))
136144 word = replace_with_phoneme (word , "व" , (phonemes .CONS_V ,))
137145 # word = replace_with_phoneme(word, "w", (phonemes.CONS_W,))
@@ -142,7 +150,7 @@ def phoneme_scan(word):
142150 word = replace_with_phoneme (word , "," , (phonemes .PUNC_COMMA ,))
143151 word = replace_with_phoneme (word , ";" , (phonemes .PUNC_COMMA ,))
144152 word = replace_with_phoneme (word , "!" , (phonemes .PUNC_EXCLAIM ,))
145- return word
153+ return word
146154
147155def replace_with_phoneme (word , letters , phoneme_ids ):
148156 result = ""
0 commit comments