class_docstr: https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html
  http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.14.3856&rep=rep1&type=pdf
  http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.18.2138&rep=rep1&type=pdf
  https://github.com/chrislit/blob/master/abydos/distance/_editex.py
  https://habr.com/ru/post/331174/ (RUS)
class_docstr_tok: ["https",":","\/\/anhaidgroup.github.io\/py_stringmatching\/v0.3.x\/Editex.html","http",":","\/\/citeseerx.ist.psu.edu\/viewdoc\/download","?","doi=10.1.1.14.3856","&","rep=rep1","&","type=pdf","http",":","\/\/citeseerx.ist.psu.edu\/viewdoc\/download","?","doi=10.1.1.18.2138","&","rep=rep1","&","type=pdf","https",":","\/\/github.com\/chrislit\/blob\/master\/abydos\/distance\/_editex.py","https",":","\/\/habr.com\/ru\/post\/331174\/","(","RUS",")"]
code: def r_cost(self, *elements: str) -> int:
      if self._ident(*elements):
          return self.match_cost
      if any(map(lambda x: x not in self.grouped, elements)):
          return self.mismatch_cost
      for group in self.groups:
          if all(map(lambda x: x in group, elements)):
              return self.group_cost
      return self.mismatch_cost
  
file_path: textdistance/textdistance/algorithms/phonetic.py
imports: from __future__ import annotations
  from collections import defaultdict
  from itertools import groupby, zip_longest
  from typing import Any, Iterator, Sequence, TypeVar
  from .base import Base, BaseSimilarity
label_desc: Use image node_id 3 for calling the Editex obj's underlying member method code with example usage: obj.r_cost() and returns: self, self, self, self