Details and Options
ResourceFunction["WordPhoneticSyllabify"] can use
LLMExampleFunction for some words if there is an OpenAI API Key set in the system. You can check whether an API Key is set by evaluating
SystemCredential["OPENAI_API_KEY"]. If needed, the key can be set using
SystemCredential["OPENAI_API_KEY"]="your-key-here".
ResourceFunction["WordPhoneticSyllabify"] places a bullet character • between each syllable.
ResourceFunction["WordPhoneticSyllabify"] syllabifies the two parts of compound words separately.
ResourceFunction["WordPhoneticSyllabify"] divides syllables using the Maximal Onset Principal, and does not take morphology into consideration.
ResourceFunction["WordPhoneticSyllabify"] is case-insensitive and returns results in lower case.
The second item of the output consists of phonetic symbols, some of which can be confused with keyboard characters including ɡ (LatinSmallLetterScriptG), ˈ (ModifierLetterVerticalLine), and ˌ ("ModifierLetterLowVerticalLine").
Phonetic output of
ResourceFunction["WordPhoneticSyllabify"][w] is Standard Modern English consistent with
WordData[w,"PhoneticForm"], even if
w is not English or includes characters that are not part of the English alphabet.
The "Stress" option, when set to "Metric", changes the phonetic part of the output from having primary and secondary stress marks (ˈ and ˌ) common in phonetics, to having marks for stressed and unstressed syllables (↑ and ↓) for the analysis of poetic meter.
Though similar, phonetic syllabification follows different rules than either hyphenation or morphologic syllabification, the most notable difference being consonant sounds that attach to the beginning of syllables if phonetically feasible (e.g., strˈaɪ•kɪŋ instead of strˈaɪk•ɪŋ).
ResourceFunction["WordPhoneticSyllabify"] has the attribute
Listable.