Prefix a noun with an indefinite article - a or an - based on whether it begins with a vowel
MIT License
I haven't done this in a while. This release generates the browser dist bundle for v2.5.0, which does not happen automatically at this point.
Published by tandrewnichols 8 months ago
This release adds "honoree" to the list of irregular words (and updates some dependency vulnerabilities).
Published by tandrewnichols over 1 year ago
This release fixes vulnerabilities in dependencies.
Published by tandrewnichols about 2 years ago
This release updates the irregular checker logic to account specifically for the word "red" which by a combination of edge-cases gets formatted incorrectly.
Published by tandrewnichols about 4 years ago
This release updates dependencies to alleviate some security vulnerabilities. N.B. however that this module has no production dependencies so any vulnerabilities listed by github are development only code. Furthermore, all vulnerabilities in development code are in transient dependencies not directly used by this module.
Published by tandrewnichols about 4 years ago
This release adds support for single letter irregulars and upgrades some dependencies to remove vulnerabilities.
Published by tandrewnichols over 4 years ago
Document how to handle plurals.
Published by tandrewnichols almost 5 years ago
This release adds "Utah" to the list of irregular words.
Published by tandrewnichols about 5 years ago
This release adds support for returning only the article (via @mrseanryan).
Published by tandrewnichols about 5 years ago
This release adds the irregular words "euro" and "urologist."
Published by tandrewnichols almost 6 years ago
Add the word "user" to the list of irregular words.
Published by tandrewnichols about 6 years ago
Add support for numbers
Published by tandrewnichols over 6 years ago
This release updates the documentation for using indefinite
in the browser and adds the engines field to package.json
.
Published by tandrewnichols over 6 years ago
This release adds a browser target to package.json for bundling tools like rollup and webpack, as well as changing the output in dist to UMD format.
Published by tandrewnichols almost 7 years ago
This release fixes acronyms that start with consonants that are pronounced like vowels (F, H, L, M, N, R, S, and X).
Published by tandrewnichols almost 7 years ago
This release adds an irregular words list and attempts to return the correct article in cases where the normal article would be incorrect based on pronunciation.
Published by tandrewnichols almost 7 years ago
This release rebuilds dist files, which I forgot to do in 2.0.0. ☹️
Published by tandrewnichols almost 7 years ago
This release adds acronym checking to attempt to prevent incorrect article selection for words beginning with "u" where that "u" is pronounced long.
Published by tandrewnichols about 9 years ago
true
as the second parameter