class_docstr: Max. phonological unit, contains phones and triggers alternations.
class_docstr_tok: ["Max",".","phonological","unit",",","contains","phones","and","triggers","alternations","."]
docstr: Pronounce g as ŋ when followed by n.
docstr_tok: ["Pronounce","g","as","\u014b","when","followed","by","n","."]
code: def _g_n_nasality_assimilation(self):
      """
      Pronounce g as ŋ when followed by n.
      """
  
      out_phones = self.phones
      target = Phone("ŋ")
      for n in range(len(self.phones)):
          p = self.phones[n]
          if p.ipa == "g" and p.right.ipa == "n̪":
              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 10 for calling the Word obj's underlying member method code with example usage: obj._g_n_nasality_assimilation() without return types