Phonex Constructs
A summary of all possible phonex constructs.
| Construct | Matches |
|---|---|
| x | The phone x. Matches regardless of diacritics. |
| x_y | The compound phone consisting of phones matched by x and y. |
| \unnnn | The phone with unicode value nnnn as a hexadecimal number. |
| \* | The * cover symbol. |
| \. | The . syllable boundary marker. |
| \+ | The + compound word marker. |
| \^ | The ^ intra-word pause maker. |
| 's' | The phone with text that matches the regular expression s |
| {f0, f1..., fn} | The phone with features f0 ... fn |
| σ | Syllable, or the remainder of (see Syllable Matcher) |
| σ/X..Y/ | Portion of a syllable denoted by constituent type ids X and Y |
| Construct | Matches |
|---|---|
| (X) | X, as a capturing group |
| (X|Y) | X or Y, as a capturing group |
| (?=X) | X, as a non-capturing group |
| (name=X) | X, as a named, capturing group. name may consist of letters and numbers, but must start with a letter. |
| \n | The content matched by group n |
| (?<X) | Look behind and match X as a non-capturing group |
| (?>X) | Look ahead and match X as a non-capturing group |
| Construct | Matches |
|---|---|
| [xyz] | x, y, or z |
| [^xyz] | Not x, y, or z |
| Construct | Matches |
|---|---|
| . | Anything |
| \c | Any consonant |
| \g | Any glide |
| \v | Any vowel |
| \p | Any intra-word pause (i.e., ^) |
| \P | Any inter-word pause (e.g., (.), (..), …) |
| \w | Any consonant or vowel. |
| \W | Any non-word character (i.e., any character not matched by \w, e.g., same as [^\w]) |
| \s | Any stress marker |
| Construct | Matches |
|---|---|
| ^ | Beginning of input |
| $ | End of input |
| \b | A word boundary including beginning of input, end of input, and whitespace. |
| \S | A syllable boundary including 'forced' syllable boundaries such as beginning of input, end of input, and whitespace; and, if syllable constituent types are available, 'soft' syllable boundaries detected at syllable edges. |
| Construct | Matches |
|---|---|
| x:plugin('s') | x if, and only if, the plug-in matcher identified by plugin matches with expression s |
| x&y | x if, and only if, a diacritic attached to x matches the expression y. (e.g., h&{aspirated}will match all 'h's with aspirated diacritics.) |
| xː | Same as x&{long}. |
| x!s | x if, and only if, the syllable stress of the phone matches s. |
| Construct | Matches |
|---|---|
| X? | X, once or not at all |
| X* | X, zero or more times |
| X+ | X, one or more times |
| X<n> | X, exactly n times |
| X<n,> | X, at least n times |
| X<,n> | X, zero to n times |
| X<n,m> | X, at least n but not more than m times |
| Construct | Matches |
|---|---|
| X?? | X, once or not at all |
| X*? | X, zero or more times |
| X+? | X, one or more times |
| X<n>? | X, exactly n times |
| X<n,>? | X, at least n times |
| X<,n>? | X, zero to n times |
| X<n,m>? | X, at least n but not more than m times |
| Construct | Matches |
|---|---|
| X?+ | X, once or not at all |
| X*+ | X, zero or more times |
| X++ | X, one or more times |
| X<n>+ | X, exactly n times |
| X<n,>+ | X, at least n times |
| X<,n>+ | X, zero to n times |
| X<n,m>+ | X, at least n but not more than m times |
