Skip to content

OpenReasoning/predicate-types.js

Repository files navigation

predicate-types.js

Test codecov NPM Version

Install

npm install @openreasoning/predicate-types

Usage

// cjs
const getTypes = require('@openreasoning/predicate-types');

// esm
import getTypes from '@openReasoning/predicate-types';

const node;

// fill in value of node of structure:
/*
{
    "value": string,
    "children": Node[]
}
*/
const type = getTypes(node);