compromise
Version:
modest natural language processing
152 lines • 4.26 kB
JSON
{
"author": "Spencer Kelly <spencermountain@gmail.com> (http://spencermounta.in)",
"name": "compromise",
"description": "modest natural language processing",
"version": "14.17.0",
"module": "./src/three.js",
"main": "./src/three.js",
"unpkg": "./builds/compromise.js",
"type": "module",
"sideEffects": false,
"types": "./types/three.d.ts",
"exports": {
".": {
"import": {
"types": "./types/three.d.ts",
"default": "./src/three.js"
},
"require": {
"types": "./types/three.d.cts",
"default": "./builds/three/compromise-three.cjs"
}
},
"./tokenize": {
"import": {
"types": "./types/one.d.ts",
"default": "./src/one.js"
},
"require": {
"types": "./types/one.d.cts",
"default": "./builds/one/compromise-one.cjs"
}
},
"./one": {
"import": {
"types": "./types/one.d.ts",
"default": "./src/one.js"
},
"require": {
"types": "./types/one.d.cts",
"default": "./builds/one/compromise-one.cjs"
}
},
"./two": {
"import": {
"types": "./types/two.d.ts",
"default": "./src/two.js"
},
"require": {
"types": "./types/two.d.cts",
"default": "./builds/two/compromise-two.cjs"
}
},
"./three": {
"import": {
"types": "./types/three.d.ts",
"default": "./src/three.js"
},
"require": {
"types": "./types/three.d.cts",
"default": "./builds/three/compromise-three.cjs"
}
},
"./misc": {
"types": "./types/misc.d.ts"
},
"./view/one": {
"types": "./types/view/one.d.ts"
},
"./view/two": {
"types": "./types/view/two.d.ts"
},
"./view/three": {
"types": "./types/view/three.d.ts"
}
},
"repository": {
"type": "git",
"url": "git://github.com/spencermountain/compromise.git"
},
"homepage": "https://github.com/spencermountain/compromise",
"engines": {
"node": ">=12.0.0"
},
"files": [
"builds/",
"types/",
"src/",
"tokenize/",
"one/",
"two/",
"three/",
"docs/",
"skills/",
"AGENTS.md",
"llms.txt"
],
"keywords": [
"nlp"
],
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 120,
"arrowParens": "avoid"
},
"dependencies": {
"efrt": "2.7.0",
"grad-school": "0.0.5",
"suffix-thumb": "5.0.3"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "16.0.3",
"@rollup/plugin-terser": "1.0.0",
"@types/node": "^26.5.0",
"cross-env": "10.1.0",
"eslint": "10.10.0",
"eslint-plugin-regexp": "3.3.0",
"nlp-corpus": "4.4.0",
"rollup": "4.63.1",
"rollup-plugin-filesize-check": "1.2.0",
"shelljs": "0.10.0",
"tap-dancer": "0.3.4",
"tape": "5.10.2",
"typescript": "5.9.3"
},
"license": "MIT",
"scripts": {
"build": "node ./scripts/version.js && node ./scripts/docs.js && rollup -c --silent",
"watch": "node --watch ./scratch.js",
"pack": "node ./scripts/pack.js",
"version": "node ./scripts/version.js",
"test": "tape \"./tests/**/*.test.js\" | tap-dancer",
"testb": "tape \"./scripts/test/smoke.test.js\" | tap-dancer && cross-env TESTENV=prod tape \"./tests/**/*.test.js\" | tap-dancer",
"test:one": "tape \"./tests/one/**/*.test.js\" | tap-dancer",
"test:two": "tape \"./tests/two/**/*.test.js\" | tap-dancer",
"test:three": "tape \"./tests/three/**/*.test.js\" | tap-dancer",
"test:types": "tsc --project tsconfig.json",
"test:filesize": "node ./scripts/filesize.js",
"test:smoke": "tape \"./scripts/test/smoke.test.js\" | tap-dancer",
"test:plugins": "tape \"./plugins/*/tests/**/*.test.js\" | tap-dancer",
"stress": "node scripts/test/stress.js",
"debug": "node ./scripts/debug.js",
"match": "node ./scripts/match.js",
"coverage": "c8 -r lcov -n 'src/**/*' -n 'plugins/**/*' tape \"./tests/**/*.test.js\" | tap-dancer",
"bench": "node ./scripts/bench/index.js",
"lint": "eslint src",
"docs": "node ./scripts/docs.js",
"plugins:build": "node ./scripts/plugins.js --pm run build"
}
}