Package Exports
- khmer-parser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (khmer-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Khmer Parser
Parsing Khmer words using Khmer dictionary.
Install
npm install khmer-parserExample
var KhmerParser = require('khmer-parser');
var dict = ["សហភាព", "អឺរ៉ុប", "ខែ", "ទាំងនោះ", "ពួក", "ចេញ"];
var parser = new KhmerParser(dict);
parser.parse(
"សហភាពអឺរ៉ុបបានផ្ដល់ពេល៣ខែឲ្យFacebook Google Twitter " +
"និងក្រុមហ៊ុនអ៊ិនធឺណេតមួយចំនួនទៀតដើម្បីបង្ហាញថាក្រុមហ៊ុនទាំងនោះ" +
"កំពុងលុបការឃោសនារបស់ពួកជ្រុលនិយមលឿនជាងបច្ចុប្បន្ន បើមិនដូច្នេះទេ" +
" គេនឹងចេញច្បាប់ដើម្បីចាប់បង្ខំឲ្យធ្វើ។"
);
// ["សហភាព", "អឺរ៉ុប", "៣", "ខែ", "Facebook", "Google", "Twitter", "ទាំងនោះ", "ពួក", "ចេញ"]