All Projects → eimg → myanmar-text-breaker

eimg / myanmar-text-breaker

Licence: MIT license
Syllable and word, breaker/boundary-segmentation for Myanmar text in JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].