FANDOM


Information icon This template employs some extremely complicated or esoteric features of template syntax.
Please do not attempt to alter it unless you are certain that you understand the setup and are prepared to repair/revert any consequent collateral damage if the results are unexpected. Any experiments should be conducted in the sandbox or your user space.

This template scans through a small string one character at a time to determines what the first phoneme is. Acceptable phonemes are listed with at Template:Pronunciation table. Do not use this template directly; it is intended for use within {{GetIPASyllable}}.

The template only accepts lower-case letters. It is assumed that the returned phoneme will have a maximum of three letters.

If there is an error and/or the code is not able to determine a valid phoneme, the template will output "?".

Examples

++{{GetFirstPhoneme|ændrohsfinks}}++

++ æ++

++{{GetFirstPhoneme|ndrohsfinks}}++

++ n++

++{{GetFirstPhoneme|drohsfinks}}++

++ d++

++{{GetFirstPhoneme|rohsfinks}}++

++ r++

++{{GetFirstPhoneme|ohsfinks}}++

++ oh++

++{{GetFirstPhoneme|sfinks}}++

++ s++

++{{GetFirstPhoneme|finks}}++

++ f++

++{{GetFirstPhoneme|inks}}++

++ i++

++{{GetFirstPhoneme|nks}}++

++ nk++

++{{GetFirstPhoneme|s}}++

++ s++

++{{GetFirstPhoneme|xx}}++

++ x++

Community content is available under CC-BY-SA unless otherwise noted.