var cleanWord = word
.split(/[^a-z0-9\s.\|]/gi)
.join("")
.replace(/([~@#$%^&*()_+=`{}\[\]\\:;<>\/ ])+/g, "");
I suspect that I am redundantly using the join function twice here.
Is there a way to achieve the same outcome with only one instance of the join method?