varnamproject / govarnam

Easily type Indic languages on computer and mobile. GoVarnam is a cross-platform transliteration library. Manglish -> Malayalam, Thanglish -> Tamil, Hinglish -> Hindi plus another 10 languages. GoVarnam is a near-Go port of libvarnam
https://varnamproject.com
Other
145 stars 11 forks source link

Weird exact matches result for a non-existing word #21

Closed subins2000 closed 2 years ago

subins2000 commented 2 years ago

Bug obtained from mwordle. Type "param". API gives {exact_matches: [word: "പരമ്", weight: 253]} but the DB doesn't have the single word പരമ്. There are words like പരമ്പര in DB which is basically പരമ് + പര. Varnam is confusing with it ?

The ideal output is പരം. It's in the exact_matches list but second with weight 252.