Task: Transform sentence to n-gram and remove all punctuation Tests: Input: ngram(‘Name, + other ~ name!’, 1) Result: [‘Name’, ‘other’, ‘name’] Input: ngram(‘Name, + other ~ name!’, 2) Result: [‘Name other’, ‘other name’] Input: ngram(‘Name, + other ~ name!’, 10) Result: [‘Name other name’] Code: function ngram(data, order) { const regex = /[^A-Za-z0-9_]/g let ngramsArrayRead more