npm: npm install icu-wordsplit
GitHub repo: https://github.com/chakrit/node-icu-wordsplit
Readme: https://github.com/chakrit/node-icu-wordsplit/blob/master/README.md

This exports a function that splits a string up into an array of words
for the specified locale, for example:

    var results = require('icu-wordsplit')('en_US', 'The quick brown
fox jumps over the lazy dog.');
    // results => ['The', 'quick', 'brown' ...

Check https://github.com/chakrit/node-icu-wordsplit/blob/master/test.js
for non-English samples.

Recently has the need to split up Thai sentence into words and found
that there is no good package for doing this yet. So I spent my
weekend building this :)

Someone should build a full node.js bindings for the ICU project. It
will definitely help lots of node.js devs in the global space.

Hope you will find it useful :)

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to