function getWeight(a, b) {
  return (
    ((b = b.join(' ').split(' ')), a.map(v => v.split(' ').every(p => b.includes(p))).filter(v => !!v).length / a.length) * 100
  );
}
What percentage of text found in `b` is in `a`
@param {string[]} a the base string to be searched in
@param {string[]} b the search query

@example
let a = ["hello", "world", "are", "you", "happy"];
let b = ["hello", "dude", "how", "are", "you"];
// intersection = ["hello", "are", "you"];
// what percentage of `a` is the intersection
let c = getWeight(a, b); // 60

// AND lookups
getWeight(
  ["jacob cane", "jessica cane"],
  ["cane"]
); // 0

getWeight(
  ["jacob cane", "jessica cane"],
  ["cane", "jessica", "jacob"]
); // 100