pluralize 0.0.2 pluralize: ^0.0.2 copied to clipboard
A new Flutter package to pluralize words
Pluralize and singularize any word.
Getting Started #
Usage #
We have singular and plural methods that convert text And isSingular and isPlural to check if a word is singular or plural.
final pluralize = Pluralize();
assert(pluralize.isPlural('cats'));
assert(!pluralize.isPlural('cat'));
assert(pluralize.isPlural('dogs'));
assert(!pluralize.isPlural('dog'));
assert(pluralize.isSingular('dog'));
assert(pluralize.plural('cat') == 'cats');
assert(pluralize.plural('dog') == 'dogs');
assert(pluralize.singular('bird') == 'bird');