<commit_before><commit_msg>Outline isConsistent pub interface for thinker<commit_after>/**
 * jKif - 2015
 * thinker.js
 * jKif.Thinker
 * @file Logical Analysis of SUO-KIF via JavaScript
 * @author <NAME> - <EMAIL>
 * @copyright Copyright (C) <NAME> - All Rights Reserved
 */


var ast = require('./ast_constructors/ast_constructors'),
    jkifUtil = require('./utility'),
    tt = require('./truth_trees/truth_trees');


/**
 *
 * @public
 * @param {Array} kwBase
 * @returns {Boolean}
 */
function isConsistent(kwBase) {
  var truthForest = new tt.TruthTreePred(kwBase);
  return truthForest.isConsistent();
}


/**
 *
 * @public
 * @param {Array} kwBase
 * @returns {Boolean}
 */
function isConsistentSentential(kwBase) {
  var truthForest = new tt.TruthTreeSent(kwBase);
  return truthForest.isConsistent();
}


/**
 *
 * @public
 * @type {Object} jKif.Thinker
 * {Function} jKif.Thinker.isConsistent
 * {Function} jKif.Thinker.isConsistentSentential
 */
var jKifThinker = {
  isConsistent: isConsistent,
  isConsistentSentential: isConsistentSentential
};


/**
 *
 * @type {Object} jKifThinker
 */
module.exports = jKifThinker;
{'fraction_non_alphanumeric': 0.1419753086419753, 'fraction_numerical': 0.003527336860670194, 'mean_word_length': 4.2304147465437785, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1623680', 'n_tokens_mistral': 412, 'n_tokens_neox': 390, 'n_words': 81}