Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wink-eng-lite-web-model

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wink-eng-lite-web-model - npm Package Compare versions

Comparing version 1.5.2 to 1.6.0

8

CHANGELOG.md

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

# [Enable non-breaking space (U+00A0) handling](https://github.com/winkjs/wink-eng-lite-web-model/releases/tag/1.6.0)
## Version 1.6.0 April 03, 2024
### ✨ Features
- We've upgraded the model to process non-breaking spaces in the same way as standard spaces. 🙌
# [Link github repo](https://github.com/winkjs/wink-eng-lite-web-model/releases/tag/1.5.2)

@@ -2,0 +10,0 @@ ## Version 1.5.2 August 01, 2023

2

dist/readability-stats.js

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

var syllables=require("./syllables.js");const consts=require("./constants.js"),tkSize=consts.tkSize;var readabilityStats=function(rdd,its){var token,cache=rdd.cache,tokens=rdd.tokens,numOfSentences=rdd.sentences.length,numOfWords=0,numOfSyllables=0,complexWords=Object.create(null),fres=121;for(let k=0;k<tokens.length;k+=1){if("word"===its.type(k,tokens,cache)){token=its.normal(k,tokens,cache),numOfWords+=1;const ns=syllables(token.toLowerCase());numOfSyllables+=ns,ns>3&&(complexWords[token]=ns-3)}fres=206.835-1.015*numOfWords/numOfSentences-84.6*numOfSyllables/numOfWords}const readingTimeInMins=numOfWords/(200+fres);return{fres:Math.round(fres),sentiment:+rdd.document[3].toFixed(2),numOfTokens:tokens.length/tkSize,numOfWords:numOfWords,numOfComplexWords:Object.keys(complexWords).length,complexWords:complexWords,numOfSentences:numOfSentences,readingTimeMins:Math.floor(readingTimeInMins),readingTimeSecs:Math.round(60*(readingTimeInMins-Math.floor(readingTimeInMins)))}};module.exports=readabilityStats;
var syllables=require("./syllables.js");const consts=require("./constants.js"),tkSize=consts.tkSize;var readabilityStats=function(rdd,its){var token,tokens=rdd.tokens,numOfSentences=rdd.sentences.length,numOfWords=0,numOfSyllables=0,complexWords=Object.create(null),fres=121;for(let k=0;k<tokens.length;k+=1){if("word"===its.type(k,rdd)){token=its.normal(k,rdd),numOfWords+=1;const ns=syllables(token.toLowerCase());numOfSyllables+=ns,ns>3&&(complexWords[token]=ns-3)}fres=206.835-1.015*numOfWords/numOfSentences-84.6*numOfSyllables/numOfWords}const readingTimeInMins=numOfWords/(200+fres);return{fres:Math.round(fres),sentiment:+rdd.document[3].toFixed(2),numOfTokens:tokens.length/tkSize,numOfWords:numOfWords,numOfComplexWords:Object.keys(complexWords).length,complexWords:complexWords,numOfSentences:numOfSentences,readingTimeMins:Math.floor(readingTimeInMins),readingTimeSecs:Math.round(60*(readingTimeInMins-Math.floor(readingTimeInMins)))}};module.exports=readabilityStats;
{
"name": "wink-eng-lite-web-model",
"version": "1.5.2",
"version": "1.6.0",
"description": "Wink's English Language Light Web Model for Web Browsers",

@@ -33,3 +33,3 @@ "keywords": [

"peerDependencies": {
"wink-nlp": ">1.8.1"
"wink-nlp": ">2.1.0"
},

@@ -36,0 +36,0 @@ "engines": {

@@ -92,4 +92,4 @@ # wink-eng-lite-web-model

## Copyright & License
The **wink-eng-lite-web-model** is copyright 2020-23 of [GRAYPE Systems Private Limited](https://graype.in/).
The **wink-eng-lite-web-model** is copyright 2020-24 of [GRAYPE Systems Private Limited](https://graype.in/).
It is licensed under the terms of the MIT License.

Sorry, the diff of this file is too big to display

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