I am currently trying to extract sentences from a list that doesn't contain any of the words from a word list.
The lists are with both letters and numbers, upper case and lower case.
I have managed to extract the words that the list of sentences contains but for some reason I can't get it to extract the sentences from the sentences list that doesn't contain any of the words from the word list.
Here is some Pseaudo code of the input contra the expected output to visualize it:
//input
var list1 = ["sentence with word1", "sentence with word2", "sentence without 3"];
var list2 = ["word1", "word2", "word3"];
//To fill out
var list1ContainedWords = [];
var list1DidntContainWords = [];
var extract = function (list1, list2) {
}
//Expected output
list1ContainedWords = ["word1", "word2"];
list1DidntContainWords = ["sentence without 3"];