Template:Auphen: Difference between revisions
Appearance
Create the auphen template |
Document the ~ word-split marker |
||
| Line 5: | Line 5: | ||
: <code><nowiki>{{auphen|word|code}}</nowiki></code> — estimated pronunciation. E.g. <code><nowiki>{{auphen|geúrl|YBS-PJ}}</nowiki></code> → {{auphen|geúrl|YBS-PJ}} | : <code><nowiki>{{auphen|word|code}}</nowiki></code> — estimated pronunciation. E.g. <code><nowiki>{{auphen|geúrl|YBS-PJ}}</nowiki></code> → {{auphen|geúrl|YBS-PJ}} | ||
: <code><nowiki>{{auphen|word|code|ruleset}}</nowiki></code> — runs a named derivation ruleset (e.g. a grammar form) and returns plain text. | : <code><nowiki>{{auphen|word|code|ruleset}}</nowiki></code> — runs a named derivation ruleset (e.g. a grammar form) and returns plain text. | ||
: A <code>~</code> in the word marks a '''word split''' — each side is run as its own word (so word-edge rules apply to each) and the output shows a space. Useful for compounds. | |||
; Parameters | ; Parameters | ||
Latest revision as of 12:53, 18 July 2026
Runs a word through a language's sound engine (Module:Auphen).
- Usage
{{auphen|word|code}}— estimated pronunciation. E.g.{{auphen|geúrl|YBS-PJ}}→ /ɣuɹəl/{{auphen|word|code|ruleset}}— runs a named derivation ruleset (e.g. a grammar form) and returns plain text.- A
~in the word marks a word split — each side is run as its own word (so word-edge rules apply to each) and the output shows a space. Useful for compounds.
- Parameters
1— the word, in the language's orthography2— the language registry code (e.g.YBS-PJ)3— optional ruleset name; omit it for pronunciation estimation
Each language's categories, glyph-to-sound map, and rulesets live at
Module:Auphen/<code>. See Template:Auphen/testcases for
worked examples and Module talk:Auphen for the engine's design notes.