MCPcopy Index your code
hub / github.com/NaturalNode/natural

github.com/NaturalNode/natural @v8.1.1 sqlite

repository ↗ · DeepWiki ↗ · release v8.1.1 ↗
1,118 symbols 2,224 edges 293 files 43 documented · 4% 3 cross-repo links
README

natural

NPM version Node.js CI JavaScript Style Guide GitHub Super-Linter Coverage Status CII Best Practices TypeScript support

"Natural" is a general natural language facility for nodejs. It offers a broad range of functionalities for natural language processing. Documentation can be found here on GitHub Pages.

Open source licenses

Natural: MIT License

Copyright (c) 2011, 2012 Chris Umbel, Rob Ellis, Russell Mull, Hugo W.L. ter Doest

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

WordNet License

This license is available as the file LICENSE in any downloaded version of WordNet. WordNet 3.0 license: (Download)

WordNet Release 3.0 This software and database is being provided to you, the LICENSEE, by Princeton University under the following license. By obtaining, using and/or copying this software and database, you agree that you have read, understood, and will comply with these terms and conditions.: Permission to use, copy, modify and distribute this software and database and its documentation for any purpose and without fee or royalty is hereby granted, provided that you agree to comply with the following copyright notice and statements, including the disclaimer, and that the same appear on ALL copies of the software, database and documentation, including modifications that you make for internal use or for distribution. WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved. THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PRINCETON UNIVERSITY MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANT- ABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE, DATABASE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. The name of Princeton University or Princeton may not be used in advertising or publicity pertaining to distribution of the software and/or database. Title to copyright in this software, database and any associated documentation shall at all times remain with Princeton University and LICENSEE agrees to preserve same.

Porter stemmer German: BSD License

The Porter stemmer for German is licensed by a BSD license. It states Standard BSD License in the source code, interpreted as the original BSD license consisting of four clauses.

Extension points exported contracts — how you extend this code

RegexTokenizerOptions (Interface)
(no doc)
lib/natural/tokenizers/index.d.ts
OrthographyTokenizerOptions (Interface)
(no doc)
lib/natural/tokenizers/index.d.ts
TaggedWord (Interface)
(no doc)
lib/natural/analyzers/index.d.ts
TaggedSentence (Interface)
(no doc)
lib/natural/analyzers/index.d.ts
ApparatusClassification (Interface)
(no doc)
lib/natural/classifiers/index.d.ts

Core symbols most depended-on inside this repo

singularize
called by 273
lib/natural/inflectors/singular_plural_inflector.js
pluralize
called by 212
lib/natural/inflectors/singular_plural_inflector.js
process
called by 145
lib/natural/phonetics/soundex.js
addDocument
called by 137
lib/natural/tfidf/tfidf.js
stem
called by 89
lib/natural/stemmers/stemmer_nl.js
tokenize
called by 86
lib/natural/tokenizers/tokenizer_case.js
addIrregular
called by 49
lib/natural/inflectors/singular_plural_inflector.js
nth
called by 47
lib/natural/inflectors/count_inflector.js

Shape

Method 410
Function 349
Class 332
Interface 25
Enum 2

Languages

TypeScript100%

Modules by API surface

lib/natural/stemmers/indonesian/prefix_rules.js63 symbols
lib/natural/tokenizers/index.d.ts52 symbols
lib/natural/brill_pos_tagger/lib/RuleTemplates.js48 symbols
lib/natural/classifiers/index.d.ts39 symbols
lib/natural/brill_pos_tagger/lib/TF_Parser.js36 symbols
lib/natural/phonetics/double_metaphone.js25 symbols
lib/natural/brill_pos_tagger/index.d.ts25 symbols
lib/natural/phonetics/metaphone.js24 symbols
lib/natural/normalizers/normalizer_ja.js20 symbols
lib/natural/stemmers/porter_stemmer_nl.js19 symbols
lib/natural/brill_pos_tagger/lib/Brill_POS_Trainer.js19 symbols
lib/natural/tfidf/tfidf.js16 symbols

Dependencies from manifests, versioned

@rollup/plugin-commonjs29.0.0 · 1×
@rollup/plugin-json6.1.0 · 1×
@rollup/plugin-node-resolve16.0.3 · 1×
@types/jasmine6.0.0 · 1×
@types/node25.2.3 · 1×
@typescript-eslint/eslint-plugin6.21.0 · 1×
afinn-1652.0.2 · 1×
afinn-165-financialmarketnews3.0.0 · 1×
apparatus0.0.10 · 1×
cross-env10.1.0 · 1×
dotenv17.3.1 · 1×
eslint8.57.0 · 1×

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add natural \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact