pluralize 0.0.1 copy "pluralize: ^0.0.1" to clipboard
pluralize: ^0.0.1 copied to clipboard

A new Flutter package to pluralize words

Pluralize and singularize any word.

Getting Started #

Zoom_demo

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');
9
likes
0
pub points
82%
popularity

Publisher

verified publisherincaview.com

A new Flutter package to pluralize words

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pluralize