Skip to content

Commit 77d5b49

Browse files
committed
Update scheme to use nga double ങ്ങ
1 parent 642a6c3 commit 77d5b49

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

govarnam/govarnam_ml_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func TestMLReverseTransliteration(t *testing.T) {
218218

219219
sugs, err = varnam.ReverseTransliterate("2019 ഏപ്രിൽ 17-ന് മലയാളം വിക്കിപീഡിയയിലെ ലേഖനങ്ങളുടെ എണ്ണം 63,000 പിന്നിട്ടു.")
220220

221-
assertEqual(t, sugs[0].Word, "2019 Epril 17-n~ malayaaLam vikkipeeDiyayile lEkhanaNGaLuTe eNNam 63,000 pinnittu.")
221+
assertEqual(t, sugs[0].Word, "2019 Epril 17-n~ malayaaLam vikkipeeDiyayile lEkhanangaLuTe eNNam 63,000 pinnittu.")
222222
}
223223

224224
func TestDictionaryLimit(t *testing.T) {

schemes/ml.scheme

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ consonants ["ka"] => "ക",
4646
["kha", ["gha"]] => "ഖ",
4747
"ga" => "ഗ",
4848
["gha", ["kha"]] => "ഘ",
49-
["NGa", ["nga"]] => "ങ്ങ",
5049
"cha" => "ച",
5150
["CHa", ["cha", "jha"]] => "ഛ",
5251
[["cha"]] => "ച്ഛ",
@@ -75,10 +74,14 @@ consonants ["ka"] => "ക",
7574

7675
consonants({:accept_if => :starts_with}, ["ca"] => "ക")
7776

78-
tag "render_value2" do
79-
consonants "nja" => ["ഞ", "ഞ്ഞ"],
80-
"nga" => ["ങ", "ങ്ങ"]
81-
end
77+
# Scheme Change August 23, 2021: nga => ങ്ങ (double ങ)
78+
# By Subin Siby
79+
consonants "nja" => ["ഞ", "ഞ്ഞ"],
80+
"NJa" => "ഞ്ഞ",
81+
82+
# Double ങ (ങ്ങ) has more usage than single
83+
"nga" => ["ങ്ങ", "ങ"],
84+
"NGa" => "ങ"
8285

8386
consonants ["kra"] => "ക്ര",
8487
"gra" => "ഗ്ര",

0 commit comments

Comments
 (0)