code: def add(self, rule: 'functions.ReplacementRule') -> None:
          
          self.matcher.add(rule.pattern, rule.replacement)
docs: Add a new rule to the replacer.
  
          Args:
              rule:
                  The rule to add.