docs: function hasRuleWithFact(mRules, fact, category, bitindex) {
      // TODO BAD QUADRATIC
      return mRules.find(rule => {
          return rule.word === fact && rule.category === category && rule.bitindex === bitindex;
      }) !== undefined;
  }