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