words/n-gram

Support for arrays

Closed this issue · 3 comments

I tried putting an array rather than a string in, but it still treated it like a joined string. Is there any way in which n-grams of words rather than characters can be supported?

Thanks!

I think a PR for this with not a lot of code is okay. I think you could use slice instead of substr to make it work on arrays as well. For L26 maybe slice in value ? value : String(value) may work?

Hey, yes I will formulate a PR. Thanks for your response; sorry, been super busy!