natural README

The project's README from github.com/NaturalNode/natural. As one markdown file: README.md.

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.

natural (NaturalNode/natural)

Searching Database…

10.9K ·GitHub
What is this?Natural is a general-purpose natural language processing library for Node.js that bundles tokenizers, stemmers, classifiers and other NLP utilities into one package.
Is this a framework or just a library I import?It's a plain library you require into your Node.js code, not a standalone app or a framework that dictates your project structure.
How do I add it to a Node.js project?Install the 'natural' package with npm and require it in your code; the project's own build uses TypeScript compiled to CommonJS and ESM bundles via Rollup.
Do I need anything besides Node.js to use it?No external services are required for core use; the package.json only requires Node.js 0.4.10 or newer, and it optionally depends on MongoDB, PostgreSQL, Redis or Memcached clients if you want to persist trained classifiers.
Are there any licensing quirks to know about?While the core code is MIT, the bundled WordNet data carries Princeton's own license and the German Porter stemmer is under a separate BSD license, so mixed terms apply depending on which parts you use.
What NLP tasks does it support out of the box?Based on its bundled dependencies it covers sentiment scoring via the AFINN-165 lexicon, text classification, multilingual stopword removal, and vector-math utilities for similarity calculations, alongside standard tokenizing and stemming.
Can trained classifiers be saved and reused?Yes, the library ships with optional storage adapters for MongoDB, PostgreSQL, Redis and Memcached so classifiers can be persisted and reloaded across runs.
Does it include WordNet for word lookups?It bundles the WordNet 3.0 lexical database under Princeton's license, giving it dictionary-style word relationship lookups alongside its own NLP tools.
How old can my Node.js version be?The package allows Node.js 0.4.10 or newer, so it runs on virtually any modern Node release without version headaches.
What are similar projects?nltk, mongoose, HanLP, spaCy, doccano, compromise, flexsearch, tiktoken
Size
64 MB
Stars
10.9K
Age
15y
Commits · 90 Days