code: def scan_for_replacements(self, txt, am, ind, char_array):
      try:
          char = char_array[ind]
      except IndexError:
          char = ""
      prepositive = self.lang.Abbreviation.PREPOSITIVE_ABBREVIATIONS
      number_abbr = self.lang.Abbreviation.NUMBER_ABBREVIATIONS
      upper = str(char).isupper()
      if not upper or am.strip().lower() in prepositive:
          if am.strip().lower() in prepositive:
              txt = replace_prepositive_abbr(txt, am)
          elif am.strip().lower() in number_abbr:
              txt = replace_pre_number_abbr(txt, am)
          else:
              txt = self.replace_period_of_abbr(txt, am)
      return txt
  
file_path: pySBD/pysbd/abbreviation_replacer.py
imports: import re
  from pysbd.utils import Text
label_desc: Use image node_id 7 for calling the AbbreviationReplacer obj's underlying member method code with example usage: obj.scan_for_replacements(txt, am, ind, char_array) and returns: txt