veer66 / wordcut

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

Replace any Nikhahit + Sara-A combos with Sara-Am #22

Closed pepa65 closed 4 years ago

pepa65 commented 4 years ago

This should work, as any Nikhahit + Sara-A is never proper Thai.

veer66 commented 4 years ago

How about moving .replace(...) into .cut, so this will benefit people use API too?

pepa65 commented 4 years ago

Sorry, I was already happy I found a way... If you know how to do it, please go ahead! :+1: