Open narze opened 5 years ago
Yes, you can. https://github.com/pureexe/thai-wordcut-js
Oh nice :)
I think I'll make another fork since that repo isn't well tested & I'd like some more features 🐶
@narze I will be glad if you pull request with a solution that can work both on the node.js and a web browser.
@veer66 Ok.
Any updates on this?
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??
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.