Skip to content

Added Normalization (Unicode only)

Latest
Compare
Choose a tag to compare
@greenlikeorange greenlikeorange released this 22 Nov 17:26
· 33 commits to master since this release

Text normalization for Burmese language no support on knayi. It guaranteed Burmese text to be a single canonical form.

API

Method Name Arguments Return Note
normalize content: String(requre) String Normzliation solve some typing errors. Unlike spellingFix this offer more appropriate way of doing so. But this function can only solve some level of normalization.

normalize(content)

knayi.normalize('မိြုင်မိြုင်\nဆိုင်ဆုိင်')
// output: မြိုင်မြိုင်\nဆိုင်ဆိုင်