JSFiddle - React, Tailwind, and code Playground

JavaScript

var string = 'This is a sĂĽPer NICE Sentence, am I right?';

var words;
words = string.replace(/[^a-zA-Z\s]/g,function(str){return '';});
words = words.match(/\w{2,}/g);

if(words != null) {
	//5 words maximum
	words = words.slice(0,5);
	if(words.length) {
		console.log(words.join(', ')); //should print: this, is, super, nice, sentence
	}
}