It's just my take at implementing the Chain of Responsibility Pattern in typescript, with a set of sentence handlers. Similar to how Middleware/ Filter chaining is implemented in .Net Core. .Net Core MVC Filters.
Because I like the simplistic, reusability of this implementation, versus implementations that require you to set the next handler instance on the previous handler instance, Such as this, and I couldn't find a good example googling around.
Everything of importance is in the index.ts. Just apply the general design concept to whatever it is you're trying to do with the Chain of Responsibility Pattern. I dunno man...