class_docstr: Word class that helps
docstr: Soundex variant was based on the original American Soundex  developed by Russel
  and King, altered to better fit Middle High German morphology. The replacement
  rules were based on matching places and manners of articulation between the
  two languages (AE and MHG).
  
  Algorithm:
  
  -Normalize word and convert the first letter to uppercase
  -Remove other vowels
  
  Replacement Rules:
  - f,v,b,p,w -> 1 Labiodental fricatives [f,v] and bilabial plosives [p,b], approximant [w]
  - m,n,ng -> 2 Nasals
  - t,d,r,l,k,c,g,ch,s -> 3 [non-nasal velars/alveolars]
  - pf, ts, z, s -> 4  Affricates and alveolar fricatives
  - r,l -> 5 Liquids
  - j -> 6 Palatal Approximant
  
  -Remove double numbers
  -Remove remaining letters
  -Retain first 3 numbers (add 0 if less than 3)
docstr_tok: ["Soundex","variant","was","based","on","the","original","American","Soundex","developed","by","Russel","and","King",",","altered","to","better","fit","Middle","High","German","morphology",".","The","replacement","rules","were","based","on","matching","places","and","manners","of","articulation","between","the","two","languages","(","AE","and","MHG",")",".","Algorithm",":","-Normalize","word","and","convert","the","first","letter","to","uppercase","-Remove","other","vowels","Replacement","Rules",":","-","f",",","v",",","b",",","p",",","w","-",">","1","Labiodental","fricatives","[","f",",","v","]","and","bilabial","plosives","[","p",",","b","]",",","approximant","[","w","]","-","m",",","n",",","ng","-",">","2","Nasals","-","t",",","d",",","r",",","l",",","k",",","c",",","g",",","ch",",","s","-",">","3","[","non-nasal","velars\/alveolars","]","-","pf",",","ts",",","z",",","s","-",">","4","Affricates","and","alveolar","fricatives","-","r",",","l","-",">","5","Liquids","-","j","-",">","6","Palatal","Approximant","-Remove","double","numbers","-Remove","remaining","letters","-Retain","first","3","numbers","(","add","0","if","less","than","3",")"]
code: def _soundex(self):
      """
      Soundex variant was based on the original American Soundex  developed by Russel
      and King, altered to better fit Middle High German morphology. The replacement
      rules were based on matching places and manners of articulation between the
      two languages (AE and MHG).
  
      Algorithm:
  
      -Normalize word and convert the first letter to uppercase
      -Remove other vowels
  
      Replacement Rules:
      - f,v,b,p,w -> 1 Labiodental fricatives [f,v] and bilabial plosives [p,b], approximant [w]
      - m,n,ng -> 2 Nasals
      - t,d,r,l,k,c,g,ch,s -> 3 [non-nasal velars/alveolars]
      - pf, ts, z, s -> 4  Affricates and alveolar fricatives
      - r,l -> 5 Liquids
      - j -> 6 Palatal Approximant
  
      -Remove double numbers
      -Remove remaining letters
      -Retain first 3 numbers (add 0 if less than 3)
      """
      t_word = (
          stem(self.word[0].lower()).upper()
          + stem(self.word[1:]).lower()
      )
  
      for w, val in zip(dict_diphth_se.keys(), dict_diphth_se.values()):
          t_word = t_word.replace(w, val)
  
      for w, val in zip(dict_se.keys(), dict_se.values()):
          t_word = t_word.replace(w, val)
  
      # Remove adjacent duplicate numbers
      t_word = re.sub(r"(\d)\1+", r"\1", t_word)
  
      # Strip remaining letters
      t_word = re.sub(r"[a-zæœ]+", "", t_word)
  
      return (t_word + "0" * 3)[:4]
  
file_path: cltk/src/cltk/phonology/gmh/syllabifier.py
imports: import re
  import unicodedata
  from cltk.alphabet.gmh import CONSONANTS, DIPHTHONGS, LONG_VOWELS, SHORT_VOWELS, TRIPHTHONGS
  from cltk.stem.gmh import stem
label_desc: Use image node_id 3 for calling the Word obj's underlying member method code with example usage: obj._soundex() and returns: unknown