Jump to content

Template:Auphen/testcases: Difference between revisions

From Yezur Wiki
Khurouan (talk | contribs)
Add acceptance tests for the auphen template
 
Thiorosan (talk | contribs)
add YAS-AI stem-formation acceptance rows guarding the two divergences fixed today (category-wide @-index; digraph-overlap left context)
 
Line 13: Line 13:
|-
|-
| <code>geo</code> || {{auphen|geo|YBS-PJ}} || <code>/ɣɔ/</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|geo|YBS-PJ}}|ɣɔ|✓|✗ [[Category:Auphen test failures]]}}
| <code>geo</code> || {{auphen|geo|YBS-PJ}} || <code>/ɣɔ/</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|geo|YBS-PJ}}|ɣɔ|✓|✗ [[Category:Auphen test failures]]}}
|}
== Airananwe (YAS-AI) stem formation ==
Guards against two divergences fixed on 2026-08-26 (see [[Module talk:Auphen]]). The <code>special</code> rows exercise an <code>@</code>-index on a category target — the marked vowel must be the last one in the word, not the last of every vowel letter. The <code>plural</code> rows exercise a left context whose preceding letter opens a digraph member overlapping the target.
{| class="wikitable"
! Word !! Ruleset !! Rendered !! Expected !! Result
|-
| <code>papaté</code> (one vowel letter) || <code>special</code> || {{auphen|papaté|YAS-AI|special}} || <code>paped</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|papaté|YAS-AI|special}}|paped|✓|✗ [[Category:Auphen test failures]]}}
|-
| <code>opité</code> (two) || <code>special</code> || {{auphen|opité|YAS-AI|special}} || <code>opid</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|opité|YAS-AI|special}}|opid|✓|✗ [[Category:Auphen test failures]]}}
|-
| <code>apoté</code> (two) || <code>special</code> || {{auphen|apoté|YAS-AI|special}} || <code>apud</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|apoté|YAS-AI|special}}|apud|✓|✗ [[Category:Auphen test failures]]}}
|-
| <code>naquité</code> (three) || <code>special</code> || {{auphen|naquité|YAS-AI|special}} || <code>naquid</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|naquité|YAS-AI|special}}|naquid|✓|✗ [[Category:Auphen test failures]]}}
|-
| <code>arch</code> (overlapping ''ch'') || <code>plural</code> || {{auphen|arch|YAS-AI|plural}} || <code>archre</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|arch|YAS-AI|plural}}|archre|✓|✗ [[Category:Auphen test failures]]}}
|-
| <code>éth</code> (no overlap) || <code>plural</code> || {{auphen|éth|YAS-AI|plural}} || <code>éthre</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|éth|YAS-AI|plural}}|éthre|✓|✗ [[Category:Auphen test failures]]}}
|-
| <code>rah</code> (context must not fire) || <code>plural</code> || {{auphen|rah|YAS-AI|plural}} || <code>rar</code> || {{#ifeq:{{#invoke:Auphen/frame|raw|rah|YAS-AI|plural}}|rar|✓|✗ [[Category:Auphen test failures]]}}
|}
|}



Latest revision as of 12:39, 26 August 2026

Live acceptance tests for Template:Auphen / Module:Auphen: the engine's output is compared to hand-checked expectations. A row shows ✗ and files this page into Category:Auphen test failures if the engine ever drifts.

Pjany (YBS-PJ) pronunciation estimation

Word Rendered Expected Result
geúrl /ɣuɹəl/ /ɣuɹəl/ ✓
seo (s-palatalization) /ʃɔ/ /ʃɔ/ ✓
teo (t-palatalization) /tʃɔ/ /tʃɔ/ ✓
geo /ɣɔ/ /ɣɔ/ ✓

Airananwe (YAS-AI) stem formation

Guards against two divergences fixed on 2026-08-26 (see Module talk:Auphen). The special rows exercise an @-index on a category target — the marked vowel must be the last one in the word, not the last of every vowel letter. The plural rows exercise a left context whose preceding letter opens a digraph member overlapping the target.

Word Ruleset Rendered Expected Result
papaté (one vowel letter) special paped paped ✓
opité (two) special opid opid ✓
apoté (two) special apud apud ✓
naquité (three) special naquid naquid ✓
arch (overlapping ch) plural archre archre ✓
éth (no overlap) plural éthre éthre ✓
rah (context must not fire) plural rar rar ✓

Graceful failure

An unknown code should not break the page — it returns a visible error and files the calling page into Category:Auphen errors:

{{#invoke:Auphen/frame|raw|x|NOPE}} → ERROR: no sound data for code "NOPE"