addInflectionRule method

void addInflectionRule(
  1. String singular,
  2. MatchToString plural
)

Implementation

void addInflectionRule(String singular, MatchToString plural) {
  _inflectionRules.add([new RegExp(singular, caseSensitive: false), plural]);
}