npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@presspage/tf-idf

v1.0.2

Published

TF-IDF for extracting topic sentences from content

Downloads

5

Readme

Installation

To install,

npm i @presspage/tf-idf

Getting Started

Start by importing the module,

import {stopwords, TFIDF} = require('@presspage/tf-idf');

// if you need to add additional stop words, just append to the array stopwords?

var content = `A California judge ruled Friday that the costly and controversial 2020 ballot measure exempting firms like Uber and Lyft from having to classify their gig workers in the state as employees rather than as independent contractors is unconstitutional.

Uber, Lyft, DoorDash, Instacart and Uber-owned Postmates bankrolled Proposition 22, or Prop 22, with more than $200 million, underscoring how important its passage was to the future of their businesses.
But in a major blow to the companies, Alameda County Superior Court Judge Frank Roesch found that "the entirety of Proposition 22 is unenforceable" because a section within the measure "limits the power of a future legislature to define app-based drivers as workers subject to workers' compensation law" and "is not severable" from the rest of the measure.
Roesch made specific reference to a section of the proposition that requires a seven-eighth legislative majority for amendments to pass, ruling it to be in defiance of the state's constitution.
"A prohibition on legislation authorizing collective bargaining by app-based drivers does not promote the right to work as an independent contractor, nor does it protect work flexibility, nor does it provide minimum workplace safety and pay standards for those workers," Roesch wrote in his ruling.
"It appears only to protect the economic interest of the network companies in having a divided, ununionized workforce, which is not a stated goal of the legislation."

The coalition representing the gig economy companies said in a statement Friday that it planned to appeal.
"We will file an immediate appeal and are confident the Appellate Court will uphold Prop 22," said Geoff Vetter, spokesperson for the Protect App-Based Drivers & Services Coalition, in a statement. "Importantly, this Superior Court ruling is not binding and will be immediately stayed upon our appeal. All of the provisions of Prop 22 will remain in effect until the appeal process is complete."
The decision stems from a lawsuit originally filed in January in California's Supreme Court by labor union Service Employees International Union (SEIU), three ridehail drivers and one ridehail customer, seeking to overturn Prop 22 before being refiled in the lower court.
In a statement, Bob Schoonover, president of SEIU California State Council, said: "Today's ruling by Judge Roesch striking down Proposition 22 couldn't be clearer: The gig industry-funded ballot initiative was unconstitutional and is therefore unenforceable. Companies like Uber and Lyft spent $225 million in an effort to take away rights from workers in a way that violates California's Constitution.
"They tried to boost their profits by undermining democracy and the state constitution. For two years, drivers have been saying that democracy cannot be bought. And today's decision shows they were right," he added.
The companies scaled their businesses with massive fleets of workers who are treated as independent contractors, and therefore not entitled to costly employee benefits such as a minimum wage, overtime, paid sick leave and unemployment insurance.
Prop 22 came in reaction to a state labor law, Assembly Bill 5 or AB-5, that went into effect January 1, 2020, and codified an "ABC" test to determine if workers are employees who are entitled to labor protections and benefits.
Under Prop 22, the companies can continue to treat drivers as independent contractors while granting some drivers benefit concessions, but not the full suite of protections that workers would have gotten had the measure not passed.`;

var topic_sentences = TFIDF(content);

// topic_sentences will be an array of three elements
console.log(topic_sentences);

the output expected,

[
    'Their gig workers in the state as employees rather than as independent contractors is unconstitutional',
    'All of the provisions of Prop 22 will remain in effect until the appeal process is complete',
    'Under Prop 22, the companies can continue to treat drivers as independent contractors while granting some drivers benefit concessions, but not the full suite of protections that workers would have gotten had the measure not passed'
]

Next Step ?

Once you have identified the topic sentences, you will need to rewrite those sentences to prevent plagarism. There are two services which can offer AI-driven writer assistant. They are Rytr at https://rytr.me/ and Jarvis at https://www.jarvis.ai/.

Once you have your new content and checked for plagarism, you can create audio voice over using WellSaidLabs at https://wellsaidlabs.com/

Next, you can create a video using your audio voice on Canva at https://canva.com

Additional Help Videos

How To Use AI Writing Assistants To Write YouTube Video Scripts - You Never Need To Write Again!

How To Use AI Writing Assistants To Write YouTube Video Scripts - You Never Need To Write Again!

How to Create Human-Like Voiceovers With an A.I. Software In Minutes (YouTube + WellSaid Tutorial)

How to Create Human-Like Voiceovers With an A.I. Software In Minutes (YouTube + WellSaid Tutorial)

How To Create HD Videos With Canva For Free - The Best Online Video Editing Software For Beginners!

How To Create HD Videos With Canva For Free - The Best Online Video Editing Software For Beginners!

Contact Us

The best contact method is via email at [email protected]

License

Creative Commons Attribution 4.0