Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anora

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anora

Figure out if a word needs "an" or "a" in front of it.

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
39
increased by254.55%
Maintainers
1
Weekly downloads
 
Created
Source

anora

Figure out if a words needs "an" or "a" in front of it.

Installation

npm install --save anora

Example

var anora = require('anora');

anora("computer") // 'a'
anora("object") // 'an'
anora("freeman") // 'a'

Improvements

This implementation is far from perfect. As described here:

http://www.quickanddirtytips.com/education/grammar/a-versus-an

Words like "honour" and "one-off" will not work properly.

Pull requests are much appreciated, with two rules to bear in mind:

  • The tool must be synchronous. No promises or callbacks.
  • The PR must demonstrate before/after examples - broken with the previous version, and fixed in the new version.

Shake n bake!

Keywords

FAQs

Package last updated on 08 May 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc