Template:GetFirstPhoneme

This template scans through a small string one character at a time to determines what the first phoneme is. Acceptable phonemes are listed WHERE? 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
++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++

++++ ++++