
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
check-english
Advanced tools
Determine if a string contains English words based on a list of 5,000 common words
A simple npm module to determine if a string contains English words, based on a list of 10,000 common English words. This tool is designed for basic language detection and works well in most cases, especially with longer texts.
Install the package using npm:
npm install check-english
Note: Requires Node.js version 14 or higher due to ES module support.
Import the isEnglish
function and check if a string contains English words:
import { isEnglish } from 'check-english';
console.log(isEnglish('Hello world')); // true
console.log(isEnglish('Hola mundo')); // false
isEnglish(text: string): boolean
This module is not 100% accurate but should be reliable for most pieces of text, particularly when longer. It uses a fixed list of 10,000 common English words, so:
Feel free to contribute or report issues at the GitHub repository.
Licensed under the MIT License.
FAQs
Determine if a string contains English words based on a list of 5,000 common words
The npm package check-english receives a total of 26 weekly downloads. As such, check-english popularity was classified as not popular.
We found that check-english demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.