veer66 / wordcut

Thai word breaker for Node.js
GNU Lesser General Public License v3.0
141 stars 40 forks source link

Can I use it for client side? #19

Open narze opened 5 years ago

narze commented 5 years ago

I'm trying to run in on Netlify and it raises error on fs lib. I think it's possible to load the dict without fs, then we can use it without running nodejs server.

veer66 commented 5 years ago

Yes, you can. https://github.com/pureexe/thai-wordcut-js

narze commented 5 years ago

Oh nice :)

narze commented 5 years ago

I think I'll make another fork since that repo isn't well tested & I'd like some more features 🐶

veer66 commented 5 years ago

@narze I will be glad if you pull request with a solution that can work both on the node.js and a web browser.

narze commented 5 years ago

@veer66 Ok.

artt commented 3 years ago

Any updates on this?

pepa65 commented 3 years ago

I think the solution there is still usable as is (with an old word list...) @narze never made a fork... The only issue is that the wordlist has not been updated in 6 years. Ideally, it should be automatically rebuilt whenever the list gets renewed. The script itself is really small. Maybe a shell script that builds the new list into the javascript and then minifies it is all that is needed. @veer66 Would you like to incorporate the resulting wordcut.min.js into this repo??