Skip to content

A package to transform english words from singular to plural and back.

Notifications You must be signed in to change notification settings

BastianHofmann/Inflector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inflector

A package to transform english words from singular to plural and back.

Usage

Inflector\Inflector::plural('Tree'); // Trees

Inflector\Inflector::singular('Cakes'); // Cake

Inflector\Inflector::plural('Fish'); // Fish

Providers may be used to retrieve uncommon irregular words.

Inflector\Inflector::setProvider(new Inflector\JsonProvider);

Providers must implement the Inflector\ProviderInterface.

About

A package to transform english words from singular to plural and back.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages