JSPM

khmer-parser

1.0.1
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q34223F
    • License MIT

    Parsing Khmer Words

    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

    Build Status

    Parsing Khmer words using Khmer dictionary.

    Install

    npm install khmer-parser

    Example

    var KhmerParser = require('khmer-parser');
    var dict = ["សហភាព", "អឺរ៉ុប", "ខែ", "ទាំងនោះ", "ពួក", "ចេញ"];
    
    var parser = new KhmerParser(dict);
    parser.parse(
        "សហភាពអឺរ៉ុបបានផ្ដល់ពេល៣ខែឲ្យFacebook Google Twitter " + 
        "និងក្រុមហ៊ុនអ៊ិនធឺណេតមួយចំនួនទៀតដើម្បីបង្ហាញថាក្រុមហ៊ុនទាំងនោះ" + 
        "កំពុងលុបការឃោសនារបស់ពួកជ្រុលនិយមលឿនជាងបច្ចុប្បន្ន បើមិនដូច្នេះទេ" + 
        " គេនឹងចេញច្បាប់ដើម្បីចាប់បង្ខំឲ្យធ្វើ។"
    );
    // ["សហភាព", "អឺរ៉ុប", "៣", "ខែ", "Facebook", "Google", "Twitter", "ទាំងនោះ", "ពួក", "ចេញ"]