addIrregularInflectionRule method

void addIrregularInflectionRule(
  1. String presentOrParticiple,
  2. String past
)

Implementation

void addIrregularInflectionRule(String presentOrParticiple, String past) {
  _inflectionRules.add([
    new RegExp(
        r'^(back|dis|for|fore|in|inter|mis|off|over|out|par|pre|re|type|un|under|up)?' +
            presentOrParticiple +
            r'$',
        caseSensitive: false),
    (Match m) => (m[1] == null) ? past : m[1]! + past
  ]);
}