class_docstr: Max. phonological unit, contains phones and triggers alternations.
class_docstr_tok: ["Max",".","phonological","unit",",","contains","phones","and","triggers","alternations","."]
docstr: Pronounce b as p when followed by s or t.
docstr_tok: ["Pronounce","b","as","p","when","followed","by","s","or","t","."]
code: def _b_devoice(self):
      """
      Pronounce b as p when followed by s or t.
      """
      out_phones = self.phones
      target = Phone("p")
      for n in range(len(self.phones)):
          p = self.phones[n]
          if p.ipa == "b" and (
              p.right.ipa == "s" or p.right.ipa == "t̪"
          ):
              out_phones[n] = target
      self.phones = out_phones
      self._refresh()
  
imports: import re
  import unicodedata
  from typing import List
  from nltk.tokenize import wordpunct_tokenize
  from cltk.core.cltk_logger import logger
  from cltk.prosody.lat import macronizer
label_desc: Use image node_id 7 for calling the Word obj's underlying member method code with example usage: obj._b_devoice() without return types