I am trying to port this to javascript, and a set of test-cases would be really helpful to verify if my version does all the stuff yours does. Even if it's just a text file of sentences & expected arrays, it would be super useful.