plural_noun 0.2.1 copy "plural_noun: ^0.2.1" to clipboard
plural_noun: ^0.2.1 copied to clipboard

Converts a English singular noun to a plural noun using a set of rules.

plural_noun #

Converts an English singular noun to a plural noun using a set of rules. This works fine for most nouns, but note that some exceptions might not convert correctly.

Usage #

Example:

import 'package:plural_noun/plural_noun.dart';

final pluralEngine = PluralEngine();

void main() {
  print(pluralEngine.convertToPluralNoun('mouse'));
  //prints mice

  print(pluralEngine.convertToPluralNoun('Car'));
  //prints Cars

  print(pluralEngine.convertToPluralNoun('TAX'));
  //prints TAXES

  // For more examples see: https://github.com/efficientyboosters/plural_noun/blob/main/test/plural_noun_test.dart
}

You can also:

5
likes
150
points
1.33k
downloads

Publisher

unverified uploader

Weekly Downloads

Converts a English singular noun to a plural noun using a set of rules.

Repository (GitHub)
View/report issues

Topics

#pluralization

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on plural_noun