THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Test mirror migration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael Jackson 8589da1bf0 ignore .DS_Store 10 years ago
lib updated email address 10 years ago
tests Added bus 10 years ago
.gitignore ignore .DS_Store 10 years ago
LICENSE Added licensing information 10 years ago
README.markdown Updated README 10 years ago

README.markdown

Overview

Plural is a library that provides natural language pluralization functions for PHP. The library currently supports the following languages:

  • English

However, Plural can easily be extended to support any language. If your language is not supported, you are encouraged to contribute a rules file to the project.

Usage

plural('dog');      # dogs
plural('matrix');   # matrices
plural('mouse');    # mice
plural('person');   # people
plural('sheep');    # sheep

Tests

Plural uses the PHPUnit unit testing framework to test the code. In order to run the tests, do the following from the project root directory:

$ phpunit tests/Plural.php

Requirements

Plural requires PHP version 5 or greater.

License

Plural is released under the terms of the MIT license. Please read the LICENSE file for further information.