narmer.phonetic module

narmer.phonetic.

The phonetic module implements phonetic algorithms including:

  • german_ipa
narmer.phonetic.enhg_ipa(word)[source]

Convert Early New High German to IPA.

This is based on TODO

Parameters:word (str) – the ENHG word to transcribe to IPA
Returns:the ENHG word’s approximate IPA equivalent
Return type:str
narmer.phonetic.german_ipa(word, period=u'nhg')[source]

Convert German to IPA.

Wrapper for other, more specific functions to convert German of various periods to IPA.

Parameters:
  • word (str) – the German word to transcribe to IPA
  • period (str) –

    a period of German from the set:

    • nhg (default) – New High German
    • enhg – Early New High German
    • mhg – Middle High German
    • ohg – Old High German
Returns:

the German word’s approximate IPA equivalent

Return type:

str

>>> german_ipa('Ehre')
'ere'
>>> german_ipa('Kohl')
'kol'
>>> german_ipa('Schifffahrt')
'ʃifffart'
>>> german_ipa('Schiller')
'ʃiller'
>>> german_ipa('Tschechien')
'tʃeçin'
narmer.phonetic.mhg_ipa(word)[source]

Convert Middle High German to IPA.

This is based on http://users.clas.ufl.edu/hasty/resources/CHAPTER1.HTM

Parameters:word (str) – the ENHG word to transcribe to IPA
Returns:the ENHG word’s approximate IPA equivalent
Return type:str
narmer.phonetic.nhg_ipa(word)[source]

Convert New High German to IPA.

This is based largely on the orthographic mapping described at: https://en.wikipedia.org/wiki/German_orthography

No significant attempt is made to accommodate loanwords.

Parameters:word (str) – the NHG word to transcribe to IPA
Returns:the NHG word’s approximate IPA equivalent
Return type:str
>>> nhg_ipa('Ehre')
'ere'
>>> nhg_ipa('Kohl')
'kol'
>>> nhg_ipa('Schifffahrt')
'ʃifffart'
>>> nhg_ipa('Schiller')
'ʃiller'
>>> nhg_ipa('Tschechien')
'tʃeçin'
narmer.phonetic.ohg_ipa(word)[source]

Convert Old High German to IPA.

This is based on TODO

Parameters:word (str) – the ENHG word to transcribe to IPA
Returns:the ENHG word’s approximate IPA equivalent
Return type:str