Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
english-a-an
Advanced tools
Determines whether a sequence (noun or adjective) should start with a
or an
: an elephant, a European, an Irishman, an heir, etc.
It is based on a list of words that must be preceded by an
: use english-a-an-list
as that list.
getAAn
will return either a
or an
based on:
aan
key with either a
or an
as a value; in general put just null herean
: use english-a-an-list
Case matters:
English
=> an English
, while english
will not be foundan AND
makes sense, while a/an and
doesn'tnpm install english-a-an
const englishAAn = require('english-a-an');
const englishAAnList = require('english-a-an-list');
// an
console.log(englishAAn.getAAn(null, englishAAnList, 'English'));
// a
console.log(englishAAn.getAAn(null, englishAAnList, 'European'));
FAQs
English a/an indefinite articles, based on WordNet
The npm package english-a-an receives a total of 172 weekly downloads. As such, english-a-an popularity was classified as not popular.
We found that english-a-an demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.