UNPKG

@mindfiredigital/eslint-plugin-hub

Version:

eslint-plugin-hub is a powerful, flexible ESLint plugin that provides a curated set of rules to enhance code readability, maintainability, and prevent common errors. Whether you're working with vanilla JavaScript, TypeScript, React, or Angular, eslint-plu

11 lines (8 loc) 166 B
const nlp = require('compromise'); function isVerb(word) { const doc = nlp(word); return doc.verbs().out('array').length > 0; } module.exports = { isVerb, };