Skip to content

Go package to resolve indefinite article (a or an) for an english word

License

Notifications You must be signed in to change notification settings

akupila/go-indefinite-article

Repository files navigation

go-indefinite-article

Build Status GoDev

Package indefinite resolves the indefinite article a or an for a given english word.

Install

$ go get github.com/akupila/go-indefinite-article

Example

article := indefinite.Article("unicorn")
fmt.Println(article + " unicorn") // a unicorn

See indefinite_test.go for more.

Binary

A small command is available to test the functionality:

$ go get github.com/akupila/go-indefinite-article/cmd/indefinite-article
$ indefinite-article university
a university
$ indefinite-article -only apple
an

The implementation is based on the PERL implementation by Damian Conway and PHP port by Niko Salminen.

About

Go package to resolve indefinite article (a or an) for an english word

Topics

Resources

License

Stars

Watchers

Forks

Languages