# articles

> Utility to determine the indirect article (in English) for a given word, using the method described at http://stackoverflow.com/questions/1288291/how-can-i-correctly-prefix-a-word-with-a-and-an/1288473#1288473 and the data provided at http://home.nerbonne

Latest version **0.2.2** (published 2018-02-14) · BSD license · 0 weekly downloads

## Install

```sh
npm install articles
pnpm add articles
yarn add articles
bun add articles
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2018-02-14 |
| First published | 2013-01-23 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 45.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Chad Kirby |
| Maintainers | ckirby |
| Keywords | linguistics, nlp |

## Links

- npm: https://www.npmjs.com/package/articles
- Repository: https://github.com/chadkirby/Articles
- Homepage: https://github.com/chadkirby/Articles#readme
- Issues: https://github.com/chadkirby/Articles/issues
- npm.io page: https://npm.io/package/articles

## Recent versions

- 0.2.2 (latest) — 2018-02-14
- 0.2.1 — 2013-01-26
- 0.2.0 — 2013-01-26
- 0.1.0 — 2013-01-23

## README

The Article class determines whether "a" or "an" should precede a word in English using the method described in [this stackoverflow response](http://stackoverflow.com/questions/1288291/how-can-i-correctly-prefix-a-word-with-a-and-an/1288473#1288473). The wikipedia-article-text dump provided by [Eamon Nerbonne](http://home.nerbonne.org/A-vs-An/) was used as the basis for the dataset.

To use:

	npm install articles

Example:

    Articles = require('articles')
	Articles.articlize(
	  'unanticipated result'
	  'unanimous vote'
	  'honest decision'
	  'honeysuckle shrub'
	  '0800 number'
	  '∞ of oregano'
	  'NASA scientist'
	  'NSA analyst'
	  'FIAT car'
	  'FAA policy'
	)

Output:

	[ 'an unanticipated result',
	  'a unanimous vote',
	  'an honest decision',
	  'a honeysuckle shrub',
	  'an 0800 number',
	  'an ∞ of oregano',
	  'a NASA scientist',
	  'an NSA analyst',
	  'a FIAT car',
	  'an FAA policy' ]

---
_Source: https://npm.io/package/articles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
