Skip to content

eimg/myanmar-text-breaker

Repository files navigation

Myanmar Text Breaker

Syllable and word, breaker/boundary-segmentation for Myanmar text in JavaScript.

Usage

var syllable = require("./syllable-breaker");
var word = require("./word-breaker");

console.log( syllable('အင်္ဂါနေ့၏ဂြိုဟ်ကောင်သည်ခြင်္သေ့ဖြစ်သည်') );
// => [ 'အင်္ဂါ', 'နေ့', '၏', 'ဂြိုဟ်', 'ကောင်', 'သည်', 'ခြင်္သေ့', 'ဖြစ်', 'သည်' ]

console.log( word('ဘယ်အရာမဆိုအရာရာတိုင်းအဆိုးအကောင်းယှဉ်တွဲနေတယ်') );
// => [ 'ဘယ်အရာမဆို', 'အရာရာတိုင်း', 'အဆိုးအကောင်း', 'ယှဉ်တွဲ', 'နေ', 'တယ်' ]

Credit

About

Syllable and word, breaker/boundary-segmentation for Myanmar text in JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published