Socket
Socket
Sign inDemoInstall

wink-nlp

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wink-nlp - npm Package Compare versions

Comparing version 1.12.0 to 1.12.1

.nyc_output/f1973c1f-52a2-4843-8013-c62d6114130a.json

2

.nyc_output/processinfo/index.json

@@ -1,1 +0,1 @@

{"processes":{"727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59":{"parent":null,"children":[]}},"files":{"/Users/neilsbohr/dev/winkjs/wink-nlp/src/wink-nlp.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/dd-wrapper.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/constants.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/doc-v2.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/contained-entities.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/locate.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/get-parent-item.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/search.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-get-item.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-get-item.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-each.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-each.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-filter.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-filter.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-token-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/its.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/sort4FT.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/allowed.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/as.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/contained-markings.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-tokens-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-tokens-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-entity-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-entities-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-entities-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-sentence-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-sentences-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-document-out.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/print-tokens.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/cache.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/tokenizer.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/recursive-tokenizer.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/compile-trex.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/tokens-mappers.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/examples-compiler.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/automaton.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/compose-patterns.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/helper.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/utilities/bm25-vectorizer.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/utilities/allowed.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"],"/Users/neilsbohr/dev/winkjs/wink-nlp/utilities/similarity.js":["727a0ee4-8cb0-457f-bc8b-9fa9f09a3d59"]},"externalIds":{}}
{"processes":{"f1973c1f-52a2-4843-8013-c62d6114130a":{"parent":null,"children":[]}},"files":{"/Users/neilsbohr/dev/winkjs/wink-nlp/src/wink-nlp.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/dd-wrapper.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/constants.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/doc-v2.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/contained-entities.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/locate.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/get-parent-item.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/search.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-get-item.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-get-item.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-each.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-each.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-filter.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-filter.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-token-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/its.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/sort4FT.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/allowed.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/as.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/contained-markings.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-tokens-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-tokens-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-entity-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-entities-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/sel-entities-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-sentence-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/col-sentences-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/itm-document-out.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/api/print-tokens.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/cache.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/tokenizer.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/recursive-tokenizer.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/compile-trex.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/tokens-mappers.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/examples-compiler.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/automaton.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/compose-patterns.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/src/helper.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/utilities/bm25-vectorizer.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/utilities/allowed.js":["f1973c1f-52a2-4843-8013-c62d6114130a"],"/Users/neilsbohr/dev/winkjs/wink-nlp/utilities/similarity.js":["f1973c1f-52a2-4843-8013-c62d6114130a"]},"externalIds":{}}

@@ -0,1 +1,7 @@

# [Ready for Node.js version 18](https://github.com/winkjs/wink-nlp/releases/tag/1.12.1)
## Version 1.12.1 October 13, 2022
### βš™οΈ Updates
- Ready for future β€” we have tested winkNLP on Node.js version 18 including its models. πŸ™Œ πŸŽ‰
# [Some enhancements plus earned OpenSSF best practices passing badge](https://github.com/winkjs/wink-nlp/releases/tag/1.12.0)

@@ -2,0 +8,0 @@ ## Version 1.12.0 May 13, 2022

@@ -1,19 +0,28 @@

# Contributing to Wink
# Contributing to WinkNLP
Thank you for taking time to contribute. We are delighted to receive contributions from the community. For wink every contribution matters β€” whether you are reporting a **bug**, posting a **question**, submitting a **pull request** or updating the **documentation**.
Thank you for taking time to contribute. We are delighted to receive contributions from the community. For `wink-nlp` every contribution matters β€” whether you are reporting a **bug**, posting a **question** or **suggestion**, submitting a **pull request** or updating the **documentation**.
This document will guide you through the contribution process and guidelines.
## Getting Started
If you spot a bug/issue and the same has not yet been reported, [raise a new issue](https://github.com/winkjs/wink-nlp/issues) or consider fixing it and sending a PR. If you have questions and/or suggestions, post them at our [discussions](https://github.com/winkjs/wink-nlp/discussions). New features may also be discussed there; eventually you may consider developing the same and sending a PR.
### How to send a PR?
1. Fork the repository from github
2. Develop your code changes
4. Capture the logic in comments
3. Ensure that the API is properly documented
4. Capture the logic in comments
4. Ensure proper linting via `npm run pretest`
5. Run tests using `npm run test`
6. Make sure coverage either stays at the current levels or improves
4. Ensure proper linting
2. Write test cases to cover each and every change and/or new feature
2. Review security and performance
5. Run the entire test suite
6. Make sure coverage either stays at the current levels or improves; note minimum acceptable level is β‰₯99.5%
7. Commit your changes in compliance with commit guidelines
8. Push to your fork
9. Sign the CLA if you are contributing for the first time
10. Finally, submit a pull request.
9. [Sign the CLA](https://cla-assistant.io/winkjs/wink-nlp) if you are contributing for the first time
After completing the above steps, you are ready to submit the pull request.
## Code of Conduct

@@ -28,21 +37,42 @@ By contributing, you are expected to uphold [wink’s code of conduct](CODE_OF_CONDUCT.md). In essence, each one of us should:

## Things to know
### About Wink
Wink is a growing open source project focusing on **Natural Language Processing**, **Machine Learning** and **Statistics**. It contains multiple repositories or packages. All packages expose consistent and uniform APIs, thus minimizing the need to learn a new interface for each task. Do take out some time in understanding the structure of APIs, before attempting any enhancements. In wink, we prefer **functions** and **closures** over objects.
## Development Guidelines
WinkNLP is a developer-friendly Natural Language Processing (NLP) library, whose API is designed specifically to make development of NLP solutions easier and faster.
Do take out some time in understanding the structure of APIs, before attempting any enhancements.
Like artisans, we too need a toolset and process to create beautiful software. The process is orchestrated by [Travis CI](https://travis-ci.org/) in accordance to the configuration files present in each repository. The details and tools used are outlined below.
In winkNLP, we prefer **functions** and **closures** over objects/classes.
Like artisans, we too need a toolset and process to create beautiful software. The process is orchestrated by [Travis CI](https://www.travis-ci.com) in accordance with the configuration files present in the repository. The details are outlined below:
### Linting
Well defined linting rules helps us in making code more consistent and avoid bugs. [ESLint](https://eslint.org) enforces these rules via its configuration file. This file is located in the root of each repository.
Well defined linting rules or **coding standards** help us in making code more consistent and avoid bugs. [ESLint](https://eslint.org) enforces these rules automatically. These rules are defined in a configuration file named `.eslintrc.json`, which is located at the root of the repository. These rules cover basic formatting, naming conventions, limits of code complexity, and many more; please refer to the configuration file for further details.
We recommend using a suitable ESLint plugin/add-on for the code editor. Use script **`npm run pretest`** at command line to run linting on the entire code.
### Documenting
We believe that the documentation must not only explain the API but also narrate the story of logic, algorithms and references used. Wink uses the [JSDoc](http://usejsdoc.org/) standard for API documentation and [Literate-Programming Standards](https://en.wikipedia.org/wiki/Literate_programming) for documenting the logic using [docker](http://jbt.github.io/docker/src/docker.js.html). The API documentation quality is measured using [Inch CI](https://inch-ci.org/) and we expect that your contribution will improve or maintain the current levels.
We believe that the documentation must not only explain the API but also narrate the story of logic, algorithms and references used. WinkNLP uses the [JSDoc](https://jsdoc.app) standard for API documentation. It is inspired by [Literate-Programming Standards](https://en.wikipedia.org/wiki/Literate_programming) for documenting the logic using [docker](http://jbt.github.io/docker/src/docker.js.html); the **`npm run sourcedocs`** script generates a well formatted code documentation in HTML.
### Testing
Wink requires a test coverage of **atleast > 99.5%** and aims for 100%. Any new contribution must maintain the existing test coverage level. We use [Chai](http://chaijs.com/), [Mocha](https://mochajs.org/) and [Istanbul](https://inch-ci.org/), [Coveralls](https://coveralls.io/) to run tests and determine coverage.
Test cases should cover each and every feature and/or change; use of standard test heuristics such as equivalence partition, boundary values, empty/null value, and decision tree is recommended to write effective test cases.
WinkNLP requires a test coverage of **at least β‰₯99.5%** and aims for 100%. Any new contribution must maintain the existing test coverage level. We use [Chai](http://chaijs.com/), [Mocha](https://mochajs.org/) and [Istanbul](https://istanbul.js.org), [Coveralls](https://coveralls.io/) to run tests and determine coverage.
Use script **`npm run test`** at command line to run the entire test suite and obtain test coverage report.
#### Performance Considerations
It is important to maintain the performance of winkNLP, whenever a change is made and/or a new feature is added. We use the [benchmark](https://benchmarkjs.com) package to measure performance in tokens per second for the entire NLP pipeline. Use script **`npm run perf`** at command line to measure performance.
#### Security Considerations
Our security review/testing is inspired from the recommendations in [OWASP's NodeJS Security Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Nodejs_Security_Cheat_Sheet.html) that are applicable to winkNLP β€” since it is a library used by developers to create NLP web/mobile/CLI apps/tools, only Platform Security specific recommendations apply. We follow the guidelines outlined below:
1. Stay away from using any external package β€” winkNLP has 0 external dependency.
1. Use ESLint as a Static Analysis Security Testing (SAST) tool.
1. Never use `eval()` function.
1. Avoid prototype pollution by using objects created via **`Object.create( null )`**.
1. Perform input validation with defined default behavior.
1. Use tools like [regexploit](https://github.com/doyensec/regexploit) to detect potential ReDoS apart from reviewing regexes using [regex 101](https://regex101.com) on Chrome browser (Latest stable version), Node.js (LTS version).
### Committing
We follow [commit guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits) from the Google's [Angular Project](https://angular.io/), whose documentation is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). See important excerpts for quick reference below:
We follow [commit guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits) from Google's [Angular Project](https://angular.io/), whose documentation is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). See important excerpts for quick reference below:

@@ -58,3 +88,3 @@ #### Commit Message Format

The header is **mandatory** and the scope of the header is optional. Any line of the commit message should not be longer 100 characters!
The header is **mandatory** and the scope of the header is optional. Any line of the commit message should not be longer than 100 characters!

@@ -71,3 +101,3 @@ **Type** should be one of the following:

- `test`: Adding missing tests or correcting existing tests
- `revert:` When you have to revert to an older commit. Ths subject should be the header of old commit and body should contain `This reverts commit <hash>.` Use `git revert` command to accomplish this.
- `revert:` When you have to revert to an older commit. Ths subject should be the header of the old commit and the body should contain `This reverts commit <hash>.` Use the `git revert` command to accomplish this.

@@ -82,5 +112,24 @@ **Scope** specifies the place of the commit change. You can use `*` when the change affects more than a single scope.

## Versioning
WinkNLP follows [semantic versioning](https://semver.org/) for every release.
### Contributor License Agreement (CLA)
## Governance
This section outlines winkNLP’s governance guidelines:
1. This is a project of [Graype Systems Private Limited (Graype)](http://graype.in), which is a micro-size company incorporated in India.
1. The project team consists of 3-core members, including a technical lead.
1. The project welcomes contributions from the community. For winkNLP every contribution matters β€” whether it is [reporting a bug/issue](https://github.com/winkjs/wink-nlp/issues), [posting a question/suggestion](https://github.com/winkjs/wink-nlp/discussions), submitting a pull request or updating the documentation.
1. Everyone is entitled to state their opinion and may present their arguments. There is an effort to achieve consensus but in absence of obvious consensus, the technical lead has the final say in decision making. It roughly matches a standard BDFL (Benevolent Dictator For Life) style project.
1. WinkNLP is licensed under the terms of the MIT license; therefore there are no limitations on forking and developing it further separately.
1. The technical lead has commit and administrative rights on the project's [organization](https://github.com/winkjs) and [repository](https://github.com/winkjs/wink-nlp) at Github. Therefore the technical lead can make changes and accept changes β€” typically pull requests submitted by others. These changes may include changes to the process and contribution requirements.
1. [Graype](http://graype.in) offers commercial support and/or services around the project.
1. The key roles are (a) User β€” who uses or has used the package; (b) Contributor β€” who has reported one or more issues, participated in one or more discussions OR sent one or more PRs; (c) Core Team Member as stated above and (d) Technical Lead.
1. Core team members are Prateek Saxena, Rachna Chakraborty and Sanjaya Kumar Saxena (Technical Lead).
1. Current opportunities to participate are outlined in the [roadmap](ROADMAP.md).
1. Every PR must comply with our [development guidelines](CONTRIBUTING.md#development-guidelines) before they can be accepted/merged.
1. Participation requires adherence to our [code of conduct](CODE_OF_CONDUCT.md).
The [CLA](https://gist.github.com/sanjayaksaxena/8b96d3d4f2be6cdc0f28a5839d5a5b2a) is for your protection as well as the protection of [GRAYPE](http://graype.in) and it’s licensees; it does not change your rights to use your own Contributions for any other purpose. Our CLA is a short and easy to understand agreement and can be signed using a simple click-through form. Please sign our Contributor License Agreement (CLA) before sending pull requests. It's a quick process, we promise!
## Contributor License Agreement (CLA)
The [CLA](https://gist.github.com/sanjayaksaxena/8b96d3d4f2be6cdc0f28a5839d5a5b2a) is for your protection as well as the protection of [Graype](http://graype.in) and it’s licensees; it does not change your rights to use your own Contributions for any other purpose. Our CLA is a short and easy to understand agreement and can be signed using a simple click-through form. Please [sign our Contributor License Agreement (CLA)](https://cla-assistant.io/winkjs/wink-nlp) before sending pull requests. It's a quick process, we promise!
{
"name": "wink-nlp",
"version": "1.12.0",
"version": "1.12.1",
"description": "Developer friendly Natural Language Processing ✨",

@@ -5,0 +5,0 @@ "keywords": [

@@ -54,14 +54,15 @@ # winkNLP

In order to use winkNLP after its installation, you also need to install a language model. The following command installs the latest version of default language model β€” the light weight English language model called [wink-eng-lite-model](https://github.com/winkjs/wink-eng-lite-model).
In order to use winkNLP after its installation, you also need to install a language model according to the node version used. The following table outlines the version specific installation command:
```shell
node -e "require( 'wink-nlp/models/install' )"
```
Any required model can be installed by specifying its name as the last parameter in the above command. For example:
```shell
node -e "require( 'wink-nlp/models/install' )" wink-eng-lite-model
```
| Node.js Version |Installation |
| --- | --- |
| 16 or 18 | `npm wink-eng-lite-web-model --save` |
| 14 or 12 | `node -e "require('wink-nlp/models/install')"` |
The [wink-eng-lite-web-model](https://github.com/winkjs/wink-eng-lite-web-model) is designed to work with Node.js version 16 or 18. It can also work on browsers as described in the next section.
The second command installs the [wink-eng-lite-model](https://github.com/winkjs/wink-eng-lite-model), which works with Node.js version 14 or 12.
### How to install for Web Browser
If you’re using winkNLP in the browser use the [wink-eng-lite-web-model](https://www.npmjs.com/package/wink-eng-lite-web-model) instead. Learn about its installation and usage in our [guide to using winkNLP in the browser](https://winkjs.org/wink-nlp/wink-nlp-in-browsers.html).
If you’re using winkNLP in the browser use the [wink-eng-lite-web-model](https://www.npmjs.com/package/wink-eng-lite-web-model). Learn about its installation and usage in our [guide to using winkNLP in the browser](https://winkjs.org/wink-nlp/wink-nlp-in-browsers.html). Explore **[winkNLP recipes](https://observablehq.com/collection/@winkjs/winknlp-recipes)** on [Observable](https://observablehq.com/) for live browser based examples.

@@ -120,3 +121,3 @@ ## Getting Started

The benchmark was conducted on [Node.js versions 14.8.0, and 12.18.3](https://nodejs.org/en/about/releases/).
The benchmark was conducted on [Node.js versions 14.8.0, and 12.18.3](https://nodejs.org/en/about/releases/). It delivered similar/better performance on Node.js versions 16/18.

@@ -155,4 +156,4 @@ The [winkNLP](https://winkjs.org/wink-nlp/) delivers similar performance on browsers; its performance on a specific machine/browser combination can be measured using the Observable notebook β€” [How to measure winkNLP's speed on browsers?](https://observablehq.com/@winkjs/how-to-measure-winknlps-speed-on-browsers?collection=@winkjs/winknlp-recipes).

**Wink NLP** is copyright 2017-21 [GRAYPE Systems Private Limited](https://graype.in/).
**Wink NLP** is copyright 2017-22 [GRAYPE Systems Private Limited](https://graype.in/).
It is licensed under the terms of the MIT License.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc