initial XML:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp tam="past-punct">
      <verb>catch</verb>
    </vp>
    <np role="subj" number="sing" def="def">
      <noun>woman</noun>
      <pp role="comitative">
        <np number="sing" def="def">
          <noun>knife</noun>
        </np>
      </pp>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme">
      <noun>mouse</noun>
      <adj>blind</adj>
      <num>three</num>
      <det>yon</det>
    </np>
  </s>
</example>

cleanup:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
-    <vp tam="past-punct">
-      <verb>catch</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="catch"/>
    </vp>
-    <np role="subj" number="sing" def="def">
-      <noun>woman</noun>
+    <np role="subj" number="sing" def="def" locus="number">
+      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
-        <np number="sing" def="def">
-          <noun>knife</noun>
+        <np number="sing" def="def" locus="number">
+          <word posp="noun" gloss="knife"/>
        </np>
      </pp>
    </np>
-    <np role="obj" def="def" number="plur" tr="rheme">
-      <noun>mouse</noun>
-      <adj>blind</adj>
-      <num>three</num>
-      <det>yon</det>
+    <np role="obj" def="def" number="plur" tr="rheme" locus="number">
+      <word posp="noun" gloss="mouse"/>
+      <word posp="adj" gloss="blind"/>
+      <word posp="num" gloss="three"/>
+      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number">
          <word posp="noun" gloss="knife"/>
        </np>
      </pp>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number">
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
      <word posp="num" gloss="three"/>
      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
-        <np number="sing" def="def" locus="number">
+        <np number="sing" def="def" locus="number" case="LOC">
          <word posp="noun" gloss="knife"/>
        </np>
+        <word gloss="COMIT" posp="pp"/>
      </pp>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number">
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
      <word posp="num" gloss="three"/>
      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

module constorder:

No change.

module casemarking:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
-    <np role="subj" number="sing" def="def" locus="number">
+    <np role="subj" number="sing" def="def" locus="number" case="ERG">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number" case="LOC">
          <word posp="noun" gloss="knife"/>
        </np>
        <word gloss="COMIT" posp="pp"/>
      </pp>
    </np>
-    <np role="obj" def="def" number="plur" tr="rheme" locus="number">
+    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM">
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
      <word posp="num" gloss="three"/>
      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

module addgender:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
-    <np role="subj" number="sing" def="def" locus="number" case="ERG">
+    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
-        <np number="sing" def="def" locus="number" case="LOC">
+        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
          <word posp="noun" gloss="knife"/>
        </np>
        <word gloss="COMIT" posp="pp"/>
      </pp>
    </np>
-    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM">
+    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
      <word posp="num" gloss="three"/>
      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
          <word posp="noun" gloss="knife"/>
        </np>
        <word gloss="COMIT" posp="pp"/>
      </pp>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
+      <word posp="num" gloss="three"/>
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
-      <word posp="num" gloss="three"/>
      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4">
      <word posp="verb" gloss="catch"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
          <word posp="noun" gloss="knife"/>
        </np>
        <word gloss="COMIT" posp="pp"/>
      </pp>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="num" gloss="three"/>
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
      <word posp="det" gloss="yon"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="catch"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
      <word posp="noun" gloss="woman"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
          <word posp="noun" gloss="knife"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMIT" posp="pp"/>
      </pp>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="num" gloss="three"/>
      <word posp="noun" gloss="mouse"/>
      <word posp="adj" gloss="blind"/>
      <word posp="det" gloss="yon"/>
+      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="catch"/>
+      <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
-      <word posp="noun" gloss="woman"/>
+      <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
-          <word posp="noun" gloss="knife"/>
+          <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
-        <word gloss="COMIT" posp="pp"/>
+        <word gloss="COMIT" posp="pp" role="comitative"/>
      </pp>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
-      <word posp="num" gloss="three"/>
-      <word posp="noun" gloss="mouse"/>
-      <word posp="adj" gloss="blind"/>
-      <word posp="det" gloss="yon"/>
+      <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+      <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+      <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+      <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for woman/noun/case/obligatory
Got ERG
About to call getSlotValue for knife/noun/case/obligatory
Got LOC
About to call getSlotValue for mouse/noun/case/obligatory
Got NOM
About to call getSlotValue for yon/det/gender/obligatory
Got cl.4
<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
      <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <pp role="comitative">
        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
          <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1"/>
+          <thingy type="nouncase" function="suffix" gloss="LOC"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMIT" posp="pp" role="comitative"/>
      </pp>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
      <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="detgender" function="prefix" gloss="cl.4"/>
      <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
  </s>
</example>

flatten:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1">
    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-      <pp role="comitative">
-        <np number="sing" def="def" locus="number" case="LOC" gender="cl.1">
    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="LOC"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-        </np>
    <word gloss="COMIT" posp="pp" role="comitative"/>
-      </pp>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="detgender" function="prefix" gloss="cl.4"/>
    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="npnumber" function="enclitic" gloss="plur"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="LOC"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMIT" posp="pp" role="comitative"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="detgender" function="prefix" gloss="cl.4"/>
-    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="npnumber" function="enclitic" gloss="plur"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1" ph="t i# &#xA712; b" slots="Cir Cmr">ti#꜒b</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1" ph="n ai &#xA712; d&#x361;z" slots="Cir Cmr">nai꜒d͡z</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s" slots="Cmr Cfs">tə#꜒s</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p" slots="Cir Cfr">ŋy꜒xo꜒p</word>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="s i &#xA716; t&#x361;&#x283;" slots="Cir Cfr">si꜖t͡ʃ</word>
+    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="b u# &#xA716; &#x292;" slots="Cir Cfr">bu#꜖ʒ</word>
+    <thingy type="detgender" function="prefix" gloss="cl.4" attach="prefix" ph="&#x257;" slots="Cip Cip">ɗ</thingy>
+    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; i &#xA712; l" slots="Cir Cfr">ʃi꜒l</word>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/b/ + /n/ > // + /m/
/d͡z/ + /t/ > // + /d͡z/
/t͡s/ + /x/ > // + /k͡x/
/ɗ/ + /ʃ/ > // + /d͡ʒ/
<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1" ph="t i# &#xA712; b" slots="Cir Cmr">ti#꜒b</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
-    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1" ph="n ai &#xA712; d&#x361;z" slots="Cir Cmr">nai꜒d͡z</word>
-    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s" slots="Cmr Cfs">tə#꜒s</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4" ph="w e &#xA716; b">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1" ph="t i# &#xA712;" underlying="t i# &#xA712; b">ti#꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="m i &#xA716; d&#x361;&#x291;" underlying="n i &#xA716; d&#x361;&#x291;">mi꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1" ph="n ai &#xA712;" underlying="n ai &#xA712; d&#x361;z">nai꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="d&#x361;z &#x259;# &#xA712; s" underlying="t &#x259;# &#xA712; s">d͡zə#꜒s</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p" slots="Cir Cfr">ŋy꜒xo꜒p</word>
+    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p">ŋy꜒xo꜒p</word>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="s i &#xA716; t&#x361;&#x283;" slots="Cir Cfr">si꜖t͡ʃ</word>
-    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
-    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="b u# &#xA716; &#x292;" slots="Cir Cfr">bu#꜖ʒ</word>
-    <thingy type="detgender" function="prefix" gloss="cl.4" attach="prefix" ph="&#x257;" slots="Cip Cip">ɗ</thingy>
-    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; i &#xA712; l" slots="Cir Cfr">ʃi꜒l</word>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
+    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="s i &#xA716; t&#x361;&#x283;">si꜖t͡ʃ</word>
+    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="b u# &#xA716; &#x292;">bu#꜖ʒ</word>
+    <thingy type="detgender" function="prefix" gloss="cl.4" attach="prefix" ph="" underlying="&#x257;"></thingy>
+    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="d&#x361;&#x292; i &#xA712; l" underlying="&#x283; i &#xA712; l">d͡ʒi꜒l</word>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
  </flat>
</example>

removetags:

<example id="nomphr" translation="The woman with the knife caught those three blind mice.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4" ph="w e &#xA716; b">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1" ph="t i# &#xA712;" underlying="t i# &#xA712; b">ti#꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="m i &#xA716; d&#x361;&#x291;" underlying="n i &#xA716; d&#x361;&#x291;">mi꜖d͡ʑ</thingy>
-    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1" ph="n ai &#xA712;" underlying="n ai &#xA712; d&#x361;z">nai꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="d&#x361;z &#x259;# &#xA712; s" underlying="t &#x259;# &#xA712; s">d͡zə#꜒s</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p">ŋy꜒xo꜒p</word>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="s i &#xA716; t&#x361;&#x283;">si꜖t͡ʃ</word>
-    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="b u# &#xA716; &#x292;">bu#꜖ʒ</word>
-    <thingy type="detgender" function="prefix" gloss="cl.4" attach="prefix" ph="" underlying="&#x257;"></thingy>
-    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="d&#x361;&#x292; i &#xA712; l" underlying="&#x283; i &#xA712; l">d͡ʒi꜒l</word>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.plur.cl.4">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="woman" role="subj" number="sing" def="def" locus="number" case="ERG" gender="cl.1" underlying="t i# &#xA712; b">ti#꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" underlying="n i &#xA716; d&#x361;&#x291;">mi꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="knife" number="sing" def="def" locus="number" case="LOC" gender="cl.1" underlying="n ai &#xA712; d&#x361;z">nai꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" underlying="t &#x259;# &#xA712; s">d͡zə#꜒s</thingy>
+    <word gloss="COMIT" posp="pp" role="comitative">ŋy꜒xo꜒p</word>
+    <word posp="num" gloss="three" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">si꜖t͡ʃ</word>
+    <word posp="noun" gloss="mouse" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word posp="adj" gloss="blind" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4">bu#꜖ʒ</word>
+    <thingy type="detgender" function="prefix" gloss="cl.4" underlying="&#x257;"></thingy>
+    <word posp="det" gloss="yon" role="obj" def="def" number="plur" tr="rheme" locus="number" case="NOM" gender="cl.4" underlying="&#x283; i &#xA712; l">d͡ʒi꜒l</word>
+    <thingy type="npnumber" function="enclitic" gloss="plur">ʒy꜖l</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;we꜖b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;catch&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;tĩ꜒b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;woman&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nai꜒d͡z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;knife&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-tə̃꜒s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;LOC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋy꜒xo꜒p&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMIT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;si꜖t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;three&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ma꜒ʃy꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;mouse&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;bũ꜖ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;blind&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗ-&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cl.4&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʃi꜒l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;yon&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʒy꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;plur&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l we꜖b ni꜖r tĩ꜒mi꜖d͡ʑ nai꜒d͡zə̃꜒s ŋy꜒xo꜒p si꜖t͡ʃ ma꜒ʃy꜖k͡xa꜒t͡ʃ bũ꜖ʒ d͡ʒi꜒l ʒy꜖l</p>
+  <p>خ࣮ل و࣮ب ن࣮ر تں࣭م࣮ࣆ ني࣭ځں࣭س ڭ࣭خ࣭پ س࣮چ م࣭ش࣮کخ࣭چ بں࣮ژ ج࣭ل ژ࣮ل</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>we꜖b</o>
+      <g>catch</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>tĩ꜒b</o>
+      <g>woman</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>nai꜒d͡z</o>
+      <g>knife</g>
+    </w>
+    <w>
+      <o>-tə̃꜒s</o>
+      <g>LOC</g>
+    </w>
+    <w>
+      <o>ŋy꜒xo꜒p</o>
+      <g>COMIT</g>
+    </w>
+    <w>
+      <o>si꜖t͡ʃ</o>
+      <g>three</g>
+    </w>
+    <w>
+      <o>ma꜒ʃy꜖t͡s</o>
+      <g>mouse</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>bũ꜖ʒ</o>
+      <g>blind</g>
+    </w>
+    <w>
+      <o>ɗ-</o>
+      <g>cl.4</g>
+    </w>
+    <w>
+      <o>ʃi꜒l</o>
+      <g>yon</g>
+    </w>
+    <w>
+      <o>ʒy꜖l</o>
+      <g>plur</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
    <vp tam="gnomic">
      <verb>love</verb>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" output="aspron">
      <noun>boy</noun>
    </np>
    <np def="def" number="sing" tr="theme" role="obj" output="aspron">
      <noun>girl</noun>
    </np>
  </s>
</example>

cleanup:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
-    <vp tam="gnomic">
-      <verb>love</verb>
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+      <word posp="verb" gloss="love"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" output="aspron">
-      <noun>boy</noun>
+    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number">
+      <word posp="noun" gloss="boy"/>
    </np>
-    <np def="def" number="sing" tr="theme" role="obj" output="aspron">
-      <noun>girl</noun>
+    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number">
+      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number">
      <word posp="noun" gloss="boy"/>
    </np>
    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number">
+    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number" case="NOM">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number">
+    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number" case="ACC">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module addgender:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number" case="NOM">
+    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number" case="ACC">
+    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number" case="ACC" gender="cl.1">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" output="aspron" locus="number" case="NOM" gender="cl.2">
-      <word posp="noun" gloss="boy"/>
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
+      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
    </np>
-    <np def="def" number="sing" tr="theme" role="obj" output="aspron" locus="number" case="ACC" gender="cl.1">
-      <word posp="noun" gloss="girl"/>
+    <np def="def" number="sing" tr="theme" role="obj" locus="number" case="ACC" gender="cl.1">
+      <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1"/>
    </np>
  </s>
</example>

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
      <word posp="verb" gloss="love"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
    </np>
    <np def="def" number="sing" tr="theme" role="obj" locus="number" case="ACC" gender="cl.1">
      <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
+      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="love"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
    </np>
    <np def="def" number="sing" tr="theme" role="obj" locus="number" case="ACC" gender="cl.1">
      <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
-      <word posp="verb" gloss="love"/>
+      <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
-      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
+      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM"/>
    </np>
    <np def="def" number="sing" tr="theme" role="obj" locus="number" case="ACC" gender="cl.1">
-      <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1"/>
+      <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC"/>
    </np>
  </s>
</example>

addaffixes:

No change.

flatten:

<example id="love2" translation="He (the boy) loves her (the girl).">
-  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM"/>
-    </np>
-    <np def="def" number="sing" tr="theme" role="obj" locus="number" case="ACC" gender="cl.1">
    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM"/>
-    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC"/>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="l i &#xA712; t&#x361;s" slots="Cir Cfr">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM" ph="m a# &#xA712; k&#x361;x" slots="Cir Cfr">ma#꜒k͡x</word>
+    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC" ph="&#x261; i &#xA712; k&#x361;x" slots="Cir Cfr">ɡi꜒k͡x</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="l i &#xA712; t&#x361;s" slots="Cir Cfr">li꜒t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM" ph="m a# &#xA712; k&#x361;x" slots="Cir Cfr">ma#꜒k͡x</word>
-    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC" ph="&#x261; i &#xA712; k&#x361;x" slots="Cir Cfr">ɡi꜒k͡x</word>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="l i &#xA712; t&#x361;s">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM" ph="m a# &#xA712; k&#x361;x">ma#꜒k͡x</word>
+    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC" ph="&#x261; i &#xA712; k&#x361;x">ɡi꜒k͡x</word>
  </flat>
</example>

removetags:

<example id="love2" translation="He (the boy) loves her (the girl).">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="l i &#xA712; t&#x361;s">li꜒t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM" ph="m a# &#xA712; k&#x361;x">ma#꜒k͡x</word>
-    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC" ph="&#x261; i &#xA712; k&#x361;x">ɡi꜒k͡x</word>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" tr="theme" role="subj" locus="number" case="NOM">ma#꜒k͡x</word>
+    <word posp="pron" number="sing" gender="cl.1" gloss="3.sing.cl.1" def="def" tr="theme" role="obj" locus="number" case="ACC">ɡi꜒k͡x</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;li꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;love&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;mã꜒k͡x&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;3.sing.cl.2&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡi꜒k͡x&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;3.sing.cl.1&lt;/span&gt;&lt;/span&gt;</p>
+  <p>li꜒t͡s ni꜖r mã꜒k͡x ɡi꜒k͡x</p>
+  <p>ل࣭څ ن࣮ر مں࣭کخ گ࣭کخ</p>
+  <il>
+    <w>
+      <o>li꜒t͡s</o>
+      <g>love</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>mã꜒k͡x</o>
+      <g>3.sing.cl.2</g>
+    </w>
+    <w>
+      <o>ɡi꜒k͡x</o>
+      <g>3.sing.cl.1</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
    <vp tam="gnomic">
      <verb>hate</verb>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj">
      <noun>NN1</noun>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj">
      <noun>NN2</noun>
    </np>
  </s>
</example>

cleanup:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
-    <vp tam="gnomic">
-      <verb>hate</verb>
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+      <word posp="verb" gloss="hate"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj">
-      <noun>NN1</noun>
+    <np def="def" number="sing" tr="theme" role="subj" locus="number">
+      <word posp="noun" gloss="NN1"/>
    </np>
-    <np def="def" number="sing" tr="rheme" role="obj">
-      <noun>NN2</noun>
+    <np def="def" number="sing" tr="rheme" role="obj" locus="number">
+      <word posp="noun" gloss="NN2"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="hate"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number">
      <word posp="noun" gloss="NN1"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number">
      <word posp="noun" gloss="NN2"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="hate"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number">
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM">
      <word posp="noun" gloss="NN1"/>
    </np>
-    <np def="def" number="sing" tr="rheme" role="obj" locus="number">
+    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC">
      <word posp="noun" gloss="NN2"/>
    </np>
  </s>
</example>

module addgender:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="hate"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM">
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="NN1"/>
    </np>
-    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC">
+    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1">
      <word posp="noun" gloss="NN2"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
      <word posp="verb" gloss="hate"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="NN1"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1">
      <word posp="noun" gloss="NN2"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
+      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="hate"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="NN1"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1">
      <word posp="noun" gloss="NN2"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="loveprop" translation="NN1 hates NN2.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
-      <word posp="verb" gloss="hate"/>
+      <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
-      <word posp="noun" gloss="NN1"/>
+      <word posp="noun" gloss="NN1" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1">
-      <word posp="noun" gloss="NN2"/>
+      <word posp="noun" gloss="NN2" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for NN1/noun/case/obligatory
Got NOM
About to call getSlotValue for NN2/noun/case/obligatory
Got ACC
<example id="loveprop" translation="NN1 hates NN2.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="NN1" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1">
      <word posp="noun" gloss="NN2" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="ACC"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="loveprop" translation="NN1 hates NN2.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2">
    <word posp="noun" gloss="NN1" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1">
    <word posp="noun" gloss="NN2" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="ACC"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

-<example id="loveprop" translation="NN1 hates NN2.">
+<example id="loveprop" translation="Sadot hates Chakhuz.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="NN1" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="NN2" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="ACC"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="t a &#xA712; &#x292; u# &#xA712; &#x261;" slots="Cir Cfr">ta꜒ʒu#꜒ɡ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="Sadot" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2" propernoun="yes" ph="s a &#xA712; &#x257; o &#xA712; t" slots="Cir Cmr">sa꜒ɗo꜒t</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="Chakhuz" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1" propernoun="yes" ph="t&#x361;&#x283; a &#xA716; x u# &#xA716; z" slots="Cir Cmr">t͡ʃa꜖xu#꜖z</word>
+    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;" slots="Cmr Cfs">ɓy꜖d͡ʒ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t/ + /x/ > // + /k/
/z/ + /ɓ/ > // + /ɓ/
<example id="loveprop" translation="Sadot hates Chakhuz.">
  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="t a &#xA712; &#x292; u# &#xA712; &#x261;" slots="Cir Cfr">ta꜒ʒu#꜒ɡ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="Sadot" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2" propernoun="yes" ph="s a &#xA712; &#x257; o &#xA712; t" slots="Cir Cmr">sa꜒ɗo꜒t</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="t a &#xA712; &#x292; u# &#xA712; &#x261;">ta꜒ʒu#꜒ɡ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="Sadot" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2" propernoun="yes" ph="s a &#xA712; &#x257; o &#xA712;" underlying="s a &#xA712; &#x257; o &#xA712; t">sa꜒ɗo꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="Chakhuz" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1" propernoun="yes" ph="t&#x361;&#x283; a &#xA716; x u# &#xA716; z" slots="Cir Cmr">t͡ʃa꜖xu#꜖z</word>
-    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;" slots="Cmr Cfs">ɓy꜖d͡ʒ</thingy>
+    <word posp="noun" gloss="Chakhuz" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1" propernoun="yes" ph="t&#x361;&#x283; a &#xA716; x u# &#xA716;" underlying="t&#x361;&#x283; a &#xA716; x u# &#xA716; z">t͡ʃa꜖xu#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;">ɓy꜖d͡ʒ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="loveprop" translation="Sadot hates Chakhuz.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1" ph="t a &#xA712; &#x292; u# &#xA712; &#x261;">ta꜒ʒu#꜒ɡ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="Sadot" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2" propernoun="yes" ph="s a &#xA712; &#x257; o &#xA712;" underlying="s a &#xA712; &#x257; o &#xA712; t">sa꜒ɗo꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="Chakhuz" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1" propernoun="yes" ph="t&#x361;&#x283; a &#xA716; x u# &#xA716;" underlying="t&#x361;&#x283; a &#xA716; x u# &#xA716; z">t͡ʃa꜖xu#꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;">ɓy꜖d͡ʒ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="verb" gloss="hate" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.2" obj="3.sing.cl.1">ta꜒ʒu#꜒ɡ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="Sadot" def="def" number="sing" tr="theme" role="subj" locus="number" case="NOM" gender="cl.2" propernoun="yes" underlying="s a &#xA712; &#x257; o &#xA712; t">sa꜒ɗo꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="Chakhuz" def="def" number="sing" tr="rheme" role="obj" locus="number" case="ACC" gender="cl.1" propernoun="yes" underlying="t&#x361;&#x283; a &#xA716; x u# &#xA716; z">t͡ʃa꜖xu#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ACC">ɓy꜖d͡ʒ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ta꜒ʒũ꜒ɡ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;hate&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;sa꜒ɗo꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;Sadot&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;t͡ʃa꜖xũ꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;Chakhuz&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ɓy꜖d͡ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ACC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>ta꜒ʒũ꜒ɡ ni꜖r sa꜒ɗo꜒ka꜒t͡ʃ t͡ʃa꜖xũ꜖ɓy꜖d͡ʒ</p>
+  <p>ت࣭ژں࣭گ ن࣮ر س࣭ڏ࣭ك࣭چ چ࣮خں࣮ݐ࣮ج</p>
+  <il>
+    <w>
+      <o>ta꜒ʒũ꜒ɡ</o>
+      <g>hate</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>sa꜒ɗo꜒t</o>
+      <g>Sadot</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>t͡ʃa꜖xũ꜖z</o>
+      <g>Chakhuz</g>
+    </w>
+    <w>
+      <o>-ɓy꜖d͡ʒ</o>
+      <g>ACC</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="posso1" translation="the boy's apple">
  <np type="owner_owned">
    <np number="sing" def="def">
      <noun>boy</noun>
    </np>
    <np number="sing" def="def">
      <noun>apple</noun>
    </np>
  </np>
</example>

cleanup:

<example id="posso1" translation="the boy's apple">
  <np type="owner_owned">
-    <np number="sing" def="def">
-      <noun>boy</noun>
+    <np number="sing" def="def" locus="number" role="owner">
+      <word posp="noun" gloss="boy"/>
    </np>
-    <np number="sing" def="def">
-      <noun>apple</noun>
+    <np number="sing" def="def" locus="number" role="owned">
+      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="posso1" translation="the boy's apple">
-  <np type="owner_owned">
+  <np type="owner_owned" case="NOM">
    <np number="sing" def="def" locus="number" role="owner">
      <word posp="noun" gloss="boy"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module addgender:

<example id="posso1" translation="the boy's apple">
-  <np type="owner_owned" case="NOM">
-    <np number="sing" def="def" locus="number" role="owner">
+  <np type="owner_owned" case="NOM" gender="cl.3">
+    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np number="sing" def="def" locus="number" role="owned">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module propagatenumber:

<example id="posso1" translation="the boy's apple">
-  <np type="owner_owned" case="NOM" gender="cl.3">
+  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

<example id="posso1" translation="the boy's apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-      <word posp="noun" gloss="boy"/>
-    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
+    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
+      <word posp="noun" gloss="boy"/>
    </np>
+  </np>
</example>

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

No change.

prodrop:

No change.

addclitics:

<example id="posso1" translation="the boy's apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="boy"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </np>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

<example id="posso1" translation="the boy's apple">
-  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
+  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
    <word posp="noun" gloss="apple"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="noun" gloss="boy"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
-  </np>
</example>

movedowntoword:

<example id="posso1" translation="the boy's apple">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
-    <word posp="noun" gloss="apple"/>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-    <word posp="noun" gloss="boy"/>
+    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>
calling defaultval for case/
defaultval: noun, case
returning NOM

addaffixes:

About to call getSlotValue for apple/noun/case/obligatory
Got NOM
About to call getSlotValue for boy/noun/case/obligatory
Got NOM
<example id="posso1" translation="the boy's apple">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

flatten:

<example id="posso1" translation="the boy's apple">
-  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
+  <flat>
    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
-  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
+  </flat>
</example>

addvocab:

<example id="posso1" translation="the boy's apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="t&#x361;s i# &#xA716; w" slots="Cir Cmr">t͡si#꜖w</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t/ + /x/ > // + /k/
/w/ + /x/ > // + /ɡ/
<example id="posso1" translation="the boy's apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="t&#x361;s i# &#xA716; w" slots="Cir Cmr">t͡si#꜖w</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="t&#x361;s i# &#xA716;" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="posso1" translation="the boy's apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="t&#x361;s i# &#xA716;" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="boy" number="sing" def="def" locus="number" role="owner" gender="cl.2" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xy꜖ʒe꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;apple&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;t͡sĩ꜖w&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;boy&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>k͡xy꜖ʒe꜒ka꜒t͡ʃ t͡sĩ꜖ɡa꜒t͡ʃ</p>
+  <p>کخ࣮ژ࣭ك࣭چ څں࣮گ࣭چ</p>
+  <il>
+    <w>
+      <o>k͡xy꜖ʒe꜒t</o>
+      <g>apple</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>t͡sĩ꜖w</o>
+      <g>boy</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="posso1b" translation="his (the boy's) apple">
  <np type="owner_owned">
    <np number="sing" def="def" output="aspron">
      <noun>boy</noun>
    </np>
    <np number="sing" def="def">
      <noun>apple</noun>
    </np>
  </np>
</example>

cleanup:

<example id="posso1b" translation="his (the boy's) apple">
  <np type="owner_owned">
-    <np number="sing" def="def" output="aspron">
-      <noun>boy</noun>
+    <np number="sing" def="def" output="aspron" locus="number" role="owner">
+      <word posp="noun" gloss="boy"/>
    </np>
-    <np number="sing" def="def">
-      <noun>apple</noun>
+    <np number="sing" def="def" locus="number" role="owned">
+      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="posso1b" translation="his (the boy's) apple">
-  <np type="owner_owned">
+  <np type="owner_owned" case="NOM">
    <np number="sing" def="def" output="aspron" locus="number" role="owner">
      <word posp="noun" gloss="boy"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module addgender:

<example id="posso1b" translation="his (the boy's) apple">
-  <np type="owner_owned" case="NOM">
-    <np number="sing" def="def" output="aspron" locus="number" role="owner">
+  <np type="owner_owned" case="NOM" gender="cl.3">
+    <np number="sing" def="def" output="aspron" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np number="sing" def="def" locus="number" role="owned">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module propagatenumber:

<example id="posso1b" translation="his (the boy's) apple">
-  <np type="owner_owned" case="NOM" gender="cl.3">
+  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" output="aspron" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module simplifynumber:

No change.

createpronouns:

<example id="posso1b" translation="his (the boy's) apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="def" output="aspron" locus="number" role="owner" gender="cl.2">
-      <word posp="noun" gloss="boy"/>
+    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
+      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module ngen:

<example id="posso1b" translation="his (the boy's) apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
-    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
+    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
+      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
    </np>
+  </np>
</example>

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

No change.

prodrop:

No change.

addclitics:

<example id="posso1b" translation="his (the boy's) apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
    </np>
  </np>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

<example id="posso1b" translation="his (the boy's) apple">
-  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
+  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
    <word posp="noun" gloss="apple"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
  </np>
-  </np>
</example>

movedowntoword:

<example id="posso1b" translation="his (the boy's) apple">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
-    <word posp="noun" gloss="apple"/>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2"/>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner"/>
  </np>
</example>

addaffixes:

About to call getSlotValue for apple/noun/case/obligatory
Got NOM
<example id="posso1b" translation="his (the boy's) apple">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner"/>
  </np>
</example>

flatten:

<example id="posso1b" translation="his (the boy's) apple">
-  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
+  <flat>
    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
-  <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner"/>
-  </np>
+  </flat>
</example>

addvocab:

<example id="posso1b" translation="his (the boy's) apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner"/>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner" ph="m a# &#xA712; k&#x361;x" slots="Cir Cfr">ma#꜒k͡x</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t/ + /x/ > // + /k/
<example id="posso1b" translation="his (the boy's) apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner" ph="m a# &#xA712; k&#x361;x" slots="Cir Cfr">ma#꜒k͡x</word>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner" ph="m a# &#xA712; k&#x361;x">ma#꜒k͡x</word>
  </flat>
</example>

removetags:

<example id="posso1b" translation="his (the boy's) apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner" ph="m a# &#xA712; k&#x361;x">ma#꜒k͡x</word>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word posp="pron" number="sing" gender="cl.2" gloss="3.sing.cl.2" def="def" locus="number" role="owner">ma#꜒k͡x</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xy꜖ʒe꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;apple&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;mã꜒k͡x&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;3.sing.cl.2&lt;/span&gt;&lt;/span&gt;</p>
+  <p>k͡xy꜖ʒe꜒ka꜒t͡ʃ mã꜒k͡x</p>
+  <p>کخ࣮ژ࣭ك࣭چ مں࣭کخ</p>
+  <il>
+    <w>
+      <o>k͡xy꜖ʒe꜒t</o>
+      <g>apple</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>mã꜒k͡x</o>
+      <g>3.sing.cl.2</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="posso2" translation="my apple">
  <np type="owner_owned">
    <np number="sing" def="neither">
      <pron person="1excl" number="sing"/>
    </np>
    <np number="sing" def="def">
      <noun>apple</noun>
    </np>
  </np>
</example>

cleanup:

<example id="posso2" translation="my apple">
  <np type="owner_owned">
-    <np number="sing" def="neither">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" locus="number" role="owner">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np number="sing" def="def">
-      <noun>apple</noun>
+    <np number="sing" def="def" locus="number" role="owned">
+      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="posso2" translation="my apple">
-  <np type="owner_owned">
+  <np type="owner_owned" case="NOM">
    <np number="sing" def="neither" locus="number" role="owner">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module addgender:

<example id="posso2" translation="my apple">
-  <np type="owner_owned" case="NOM">
+  <np type="owner_owned" case="NOM" gender="cl.3">
    <np number="sing" def="neither" locus="number" role="owner">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np number="sing" def="def" locus="number" role="owned">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module propagatenumber:

<example id="posso2" translation="my apple">
-  <np type="owner_owned" case="NOM" gender="cl.3">
+  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="neither" locus="number" role="owner">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
  </np>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

<example id="posso2" translation="my apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="neither" locus="number" role="owner">
-      <word person="1excl" number="sing" posp="pron"/>
-    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
+    <np number="sing" def="neither" locus="number" role="owner">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
+  </np>
</example>

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="posso2" translation="my apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
    <np number="sing" def="neither" locus="number" role="owner">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
  </np>
</example>

copyuptophrase:

<example id="posso2" translation="my apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
    </np>
-    <np number="sing" def="neither" locus="number" role="owner">
+    <np number="sing" def="neither" locus="number" role="owner" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
  </np>
</example>

prodrop:

No change.

addclitics:

<example id="posso2" translation="my apple">
  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
      <word posp="noun" gloss="apple"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="neither" locus="number" role="owner" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
  </np>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

<example id="posso2" translation="my apple">
-  <np type="owner_owned" case="NOM" gender="cl.3" number="sing">
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.3">
+  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
    <word posp="noun" gloss="apple"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="neither" locus="number" role="owner" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
  </np>
-  </np>
</example>

movedowntoword:

<example id="posso2" translation="my apple">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
-    <word posp="noun" gloss="apple"/>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="neither" locus="number" role="owner" person="1excl">
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
  </np>
</example>

addaffixes:

About to call getSlotValue for apple/noun/case/obligatory
Got NOM
<example id="posso2" translation="my apple">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="neither" locus="number" role="owner" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
  </np>
</example>

flatten:

<example id="posso2" translation="my apple">
-  <np number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM">
+  <flat>
    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
-  <np number="sing" def="neither" locus="number" role="owner" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
-  </np>
+  </flat>
</example>

addvocab:

<example id="posso2" translation="my apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t/ + /x/ > // + /k/
<example id="posso2" translation="my apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
  </flat>
</example>

removetags:

<example id="posso2" translation="my apple">
  <flat>
-    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <word posp="noun" gloss="apple" number="sing" def="def" locus="number" role="owned" gender="cl.3" case="NOM" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" role="owner">k͡xø꜒t</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xy꜖ʒe꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;apple&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt;</p>
+  <p>k͡xy꜖ʒe꜒ka꜒t͡ʃ k͡xø꜒t</p>
+  <p>کخ࣮ژ࣭ك࣭چ کخ࣭ت</p>
+  <il>
+    <w>
+      <o>k͡xy꜖ʒe꜒t</o>
+      <g>apple</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp tam="past-punct">
      <verb>kiss</verb>
    </vp>
    <np role="subj">
      <np type="owner_owned">
        <np number="sing" def="def">
          <noun>hunter</noun>
        </np>
        <np number="sing" def="def">
          <noun>daughter</noun>
        </np>
      </np>
    </np>
    <np role="obj">
      <np type="owner_owned">
        <np type="owner_owned">
          <np number="sing" def="neither">
            <pron person="2" number="sing"/>
          </np>
          <np number="sing" def="def">
            <noun>neighbour</noun>
          </np>
        </np>
        <np number="sing" def="def">
          <noun>son</noun>
        </np>
      </np>
    </np>
  </s>
</example>

cleanup:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
-    <vp tam="past-punct">
-      <verb>kiss</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="kiss"/>
    </vp>
    <np role="subj">
      <np type="owner_owned">
-        <np number="sing" def="def">
-          <noun>hunter</noun>
+        <np number="sing" def="def" locus="number" role="owner">
+          <word posp="noun" gloss="hunter"/>
        </np>
-        <np number="sing" def="def">
-          <noun>daughter</noun>
+        <np number="sing" def="def" locus="number" role="owned">
+          <word posp="noun" gloss="daughter"/>
        </np>
      </np>
    </np>
    <np role="obj">
      <np type="owner_owned">
-        <np type="owner_owned">
-          <np number="sing" def="neither">
-            <pron person="2" number="sing"/>
+        <np type="owner_owned" role="owner">
+          <np number="sing" def="neither" locus="number" role="owner">
+            <word person="2" number="sing" posp="pron"/>
          </np>
-          <np number="sing" def="def">
-            <noun>neighbour</noun>
+          <np number="sing" def="def" locus="number" role="owned">
+            <word posp="noun" gloss="neighbour"/>
          </np>
        </np>
-        <np number="sing" def="def">
-          <noun>son</noun>
+        <np number="sing" def="def" locus="number" role="owned">
+          <word posp="noun" gloss="son"/>
        </np>
      </np>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kiss"/>
    </vp>
    <np role="subj">
      <np type="owner_owned">
        <np number="sing" def="def" locus="number" role="owner">
          <word posp="noun" gloss="hunter"/>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="daughter"/>
        </np>
      </np>
    </np>
    <np role="obj">
      <np type="owner_owned">
        <np type="owner_owned" role="owner">
          <np number="sing" def="neither" locus="number" role="owner">
            <word person="2" number="sing" posp="pron"/>
          </np>
          <np number="sing" def="def" locus="number" role="owned">
            <word posp="noun" gloss="neighbour"/>
          </np>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kiss"/>
    </vp>
-    <np role="subj">
+    <np role="subj" case="ERG">
      <np type="owner_owned">
        <np number="sing" def="def" locus="number" role="owner">
          <word posp="noun" gloss="hunter"/>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="daughter"/>
        </np>
      </np>
    </np>
-    <np role="obj">
+    <np role="obj" case="NOM">
      <np type="owner_owned">
        <np type="owner_owned" role="owner">
          <np number="sing" def="neither" locus="number" role="owner">
            <word person="2" number="sing" posp="pron"/>
          </np>
          <np number="sing" def="def" locus="number" role="owned">
            <word posp="noun" gloss="neighbour"/>
          </np>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
    </np>
  </s>
</example>

module addgender:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kiss"/>
    </vp>
    <np role="subj" case="ERG">
-      <np type="owner_owned">
-        <np number="sing" def="def" locus="number" role="owner">
+      <np type="owner_owned" gender="cl.1">
+        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
          <word posp="noun" gloss="hunter"/>
        </np>
-        <np number="sing" def="def" locus="number" role="owned">
+        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
        </np>
      </np>
    </np>
    <np role="obj" case="NOM">
-      <np type="owner_owned">
-        <np type="owner_owned" role="owner">
+      <np type="owner_owned" gender="cl.2">
+        <np type="owner_owned" role="owner" gender="cl.1">
          <np number="sing" def="neither" locus="number" role="owner">
            <word person="2" number="sing" posp="pron"/>
          </np>
-          <np number="sing" def="def" locus="number" role="owned">
+          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="neighbour"/>
          </np>
        </np>
-        <np number="sing" def="def" locus="number" role="owned">
+        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
    </np>
  </s>
</example>

module propagatenumber:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kiss"/>
    </vp>
-    <np role="subj" case="ERG">
-      <np type="owner_owned" gender="cl.1">
+    <np role="subj" case="ERG" number="sing">
+      <np type="owner_owned" gender="cl.1" number="sing">
        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
          <word posp="noun" gloss="hunter"/>
        </np>
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
        </np>
      </np>
    </np>
-    <np role="obj" case="NOM">
-      <np type="owner_owned" gender="cl.2">
-        <np type="owner_owned" role="owner" gender="cl.1">
+    <np role="obj" case="NOM" number="sing">
+      <np type="owner_owned" gender="cl.2" number="sing">
+        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="neither" locus="number" role="owner">
            <word person="2" number="sing" posp="pron"/>
          </np>
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="neighbour"/>
          </np>
        </np>
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
    </np>
  </s>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kiss"/>
    </vp>
    <np role="subj" case="ERG" number="sing">
      <np type="owner_owned" gender="cl.1" number="sing">
-        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-          <word posp="noun" gloss="hunter"/>
-        </np>
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
        </np>
+        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
+          <word posp="noun" gloss="hunter"/>
        </np>
      </np>
+    </np>
    <np role="obj" case="NOM" number="sing">
      <np type="owner_owned" gender="cl.2" number="sing">
-        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
-          <np number="sing" def="neither" locus="number" role="owner">
-            <word person="2" number="sing" posp="pron"/>
+        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
+          <word posp="noun" gloss="son"/>
        </np>
+        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="neighbour"/>
          </np>
+          <np number="sing" def="neither" locus="number" role="owner">
+            <word person="2" number="sing" posp="pron"/>
          </np>
-        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
-          <word posp="noun" gloss="son"/>
        </np>
      </np>
    </np>
  </s>
</example>

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kiss"/>
    </vp>
    <np role="subj" case="ERG" number="sing">
      <np type="owner_owned" gender="cl.1" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
        </np>
        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
          <word posp="noun" gloss="hunter"/>
        </np>
      </np>
    </np>
    <np role="obj" case="NOM" number="sing">
      <np type="owner_owned" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="neighbour"/>
          </np>
          <np number="sing" def="neither" locus="number" role="owner">
-            <word person="2" number="sing" posp="pron"/>
+            <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
          </np>
        </np>
      </np>
    </np>
  </s>
</example>

copyuptophrase:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
      <word posp="verb" gloss="kiss"/>
    </vp>
-    <np role="subj" case="ERG" number="sing">
+    <np role="subj" case="ERG" number="sing" gender="cl.1">
      <np type="owner_owned" gender="cl.1" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
        </np>
        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
          <word posp="noun" gloss="hunter"/>
        </np>
      </np>
    </np>
-    <np role="obj" case="NOM" number="sing">
+    <np role="obj" case="NOM" number="sing" gender="cl.2">
      <np type="owner_owned" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="neighbour"/>
          </np>
-          <np number="sing" def="neither" locus="number" role="owner">
+          <np number="sing" def="neither" locus="number" role="owner" person="2">
            <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
          </np>
        </np>
      </np>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kiss"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" case="ERG" number="sing" gender="cl.1">
      <np type="owner_owned" gender="cl.1" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
          <word posp="noun" gloss="hunter"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
      </np>
    </np>
    <np role="obj" case="NOM" number="sing" gender="cl.2">
      <np type="owner_owned" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="neighbour"/>
+            <thingy type="npnumber" function="enclitic" gloss="sing"/>
          </np>
          <np number="sing" def="neither" locus="number" role="owner" person="2">
            <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
          </np>
        </np>
      </np>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kiss"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
-    <np role="subj" case="ERG" number="sing" gender="cl.1">
-      <np type="owner_owned" gender="cl.1" number="sing">
+    <np type="owner_owned" gender="cl.1" number="sing" role="subj" case="ERG">
      <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
        <word posp="noun" gloss="daughter"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
        <word posp="noun" gloss="hunter"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
    </np>
-    </np>
-    <np role="obj" case="NOM" number="sing" gender="cl.2">
-      <np type="owner_owned" gender="cl.2" number="sing">
+    <np type="owner_owned" gender="cl.2" number="sing" role="obj" case="NOM">
      <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
        <word posp="noun" gloss="son"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <np type="owner_owned" role="owner" gender="cl.1" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="neighbour"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="neither" locus="number" role="owner" person="2">
          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
      </np>
    </np>
-    </np>
  </s>
</example>

unwrapOwnerOwned:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kiss"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
-    <np type="owner_owned" gender="cl.1" number="sing" role="subj" case="ERG">
-      <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG">
      <word posp="noun" gloss="daughter"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    </np>
-    <np type="owner_owned" gender="cl.2" number="sing" role="obj" case="NOM">
-      <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM">
      <word posp="noun" gloss="son"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-      <np type="owner_owned" role="owner" gender="cl.1" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="neighbour"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="neither" locus="number" role="owner" person="2">
      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
    </np>
-      </np>
-    </np>
  </s>
</example>

movedowntoword:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="kiss"/>
+      <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG">
-      <word posp="noun" gloss="daughter"/>
+      <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-      <word posp="noun" gloss="hunter"/>
+      <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM">
-      <word posp="noun" gloss="son"/>
+      <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
-      <word posp="noun" gloss="neighbour"/>
+      <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="neither" locus="number" role="owner" person="2">
-      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
+      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
    </np>
  </s>
</example>
calling defaultval for case/
defaultval: noun, case
returning NOM
calling defaultval for case/
defaultval: noun, case
returning NOM

addaffixes:

About to call getSlotValue for daughter/noun/case/obligatory
Got ERG
About to call getSlotValue for hunter/noun/case/obligatory
Got NOM
About to call getSlotValue for son/noun/case/obligatory
Got NOM
About to call getSlotValue for neighbour/noun/case/obligatory
Got NOM
<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG">
      <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM">
      <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="neither" locus="number" role="owner" person="2">
      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
    </np>
  </s>
</example>

flatten:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG">
    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM">
    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="neither" locus="number" role="owner" person="2">
    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2" ph="d&#x361;&#x292; i &#xA716; &#x283; i# &#xA712; t&#x361;&#x283;" slots="Cir Cfr">d͡ʒi꜖ʃi#꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG" ph="k &#xF8; &#xA716; t&#x361;s" slots="Cir Cmr">kø꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM" ph="n o &#xA712; k" slots="Cir Cmr">no꜒k</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="t&#x361;s y &#xA716; z u &#xA712; j" slots="Cir Cmr">t͡sy꜖zu꜒j</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /n/ > // + /n/
/ɗ/ + /x/ > // + /x/
/k/ + /x/ > // + /k/
/j/ + /x/ > // + /ɡ/
<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2" ph="d&#x361;&#x292; i &#xA716; &#x283; i# &#xA712; t&#x361;&#x283;" slots="Cir Cfr">d͡ʒi꜖ʃi#꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG" ph="k &#xF8; &#xA716; t&#x361;s" slots="Cir Cmr">kø꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2" ph="d&#x361;&#x292; i &#xA716; &#x283; i# &#xA712; t&#x361;&#x283;">d͡ʒi꜖ʃi#꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG" ph="k &#xF8; &#xA716;" underlying="k &#xF8; &#xA716; t&#x361;s">kø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM" ph="n o &#xA712; k" slots="Cir Cmr">no꜒k</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM" ph="n o &#xA712;" underlying="n o &#xA712; k">no꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="t&#x361;s y &#xA716; z u &#xA712; j" slots="Cir Cmr">t͡sy꜖zu꜒j</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="t&#x361;s y &#xA716; z u &#xA712;" underlying="t&#x361;s y &#xA716; z u &#xA712; j">t͡sy꜖zu꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
  </flat>
</example>

removetags:

<example id="posso3" translation="The hunter's daughter kissed your neighbour's son.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2" ph="d&#x361;&#x292; i &#xA716; &#x283; i# &#xA712; t&#x361;&#x283;">d͡ʒi꜖ʃi#꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG" ph="k &#xF8; &#xA716;" underlying="k &#xF8; &#xA716; t&#x361;s">kø꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM" ph="n o &#xA712;" underlying="n o &#xA712; k">no꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="t&#x361;s y &#xA716; z u &#xA712;" underlying="t&#x361;s y &#xA716; z u &#xA712; j">t͡sy꜖zu꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="kiss" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.1" obj="3.sing.cl.2">d͡ʒi꜖ʃi#꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="ERG" underlying="k &#xF8; &#xA716; t&#x361;s">kø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" case="NOM" underlying="n o &#xA712; k">no꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="neighbour" number="sing" def="def" locus="number" role="owned" gender="cl.1" underlying="t&#x361;s y &#xA716; z u &#xA712; j">t͡sy꜖zu꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner">ɡø꜖z</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʒi꜖ʃĩ꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;kiss&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;kø꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;daughter&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;la꜖t͡sø꜖ɗ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;hunter&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;no꜒k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;son&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;t͡sy꜖zu꜒j&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;neighbour&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡø꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;2.sing&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l d͡ʒi꜖ʃĩ꜒t͡ʃ ni꜖r kø꜖ni꜖d͡ʑ la꜖t͡sø꜖xa꜒t͡ʃ no꜒ka꜒t͡ʃ t͡sy꜖zu꜒ɡa꜒t͡ʃ ɡø꜖z</p>
+  <p>خ࣮ل ج࣮شں࣭چ ن࣮ر ك࣮ن࣮ࣆ ل࣮څ࣮خ࣭چ ن࣭ك࣭چ څ࣮ز࣭گ࣭چ گ࣮ز</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>d͡ʒi꜖ʃĩ꜒t͡ʃ</o>
+      <g>kiss</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>kø꜖t͡s</o>
+      <g>daughter</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>la꜖t͡sø꜖ɗ</o>
+      <g>hunter</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>no꜒k</o>
+      <g>son</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>t͡sy꜖zu꜒j</o>
+      <g>neighbour</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>ɡø꜖z</o>
+      <g>2.sing</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="lamb0" translation="a lamb">
  <np def="indef" number="sing" tr="rheme">
    <noun>lamb</noun>
  </np>
</example>

cleanup:

<example id="lamb0" translation="a lamb">
-  <np def="indef" number="sing" tr="rheme">
-    <noun>lamb</noun>
+  <np def="indef" number="sing" tr="rheme" locus="number">
+    <word posp="noun" gloss="lamb"/>
  </np>
</example>

module articles:

<example id="lamb0" translation="a lamb">
-  <np def="indef" number="sing" tr="rheme" locus="number">
+  <np number="sing" tr="rheme" locus="number">
    <word posp="noun" gloss="lamb"/>
  </np>
</example>

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="lamb0" translation="a lamb">
-  <np number="sing" tr="rheme" locus="number">
+  <np number="sing" tr="rheme" locus="number" case="NOM">
    <word posp="noun" gloss="lamb"/>
  </np>
</example>

module addgender:

<example id="lamb0" translation="a lamb">
-  <np number="sing" tr="rheme" locus="number" case="NOM">
+  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="lamb"/>
  </np>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

No change.

prodrop:

No change.

addclitics:

<example id="lamb0" translation="a lamb">
  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="lamb"/>
+    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="lamb0" translation="a lamb">
  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
-    <word posp="noun" gloss="lamb"/>
+    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

addaffixes:

About to call getSlotValue for lamb/noun/case/obligatory
Got NOM
<example id="lamb0" translation="a lamb">
  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

flatten:

<example id="lamb0" translation="a lamb">
-  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
+  <flat>
    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
+  </flat>
</example>

addvocab:

<example id="lamb0" translation="a lamb">
  <flat>
-    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x" slots="Cir Cmr">ʃə#꜖d͡ʑɔi꜒x</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/x/ + /x/ > // + /x/
<example id="lamb0" translation="a lamb">
  <flat>
-    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x" slots="Cir Cmr">ʃə#꜖d͡ʑɔi꜒x</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712;" underlying="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x">ʃə#꜖d͡ʑɔi꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="lamb0" translation="a lamb">
  <flat>
-    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712;" underlying="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x">ʃə#꜖d͡ʑɔi꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="lamb" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" underlying="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x">ʃə#꜖d͡ʑɔi꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʃə̃꜖d͡ʑɔi꜒x&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;lamb&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>ʃə̃꜖d͡ʑɔi꜒xa꜒t͡ʃ</p>
+  <p>شں࣮ࣆي࣭خ࣭چ</p>
+  <il>
+    <w>
+      <o>ʃə̃꜖d͡ʑɔi꜒x</o>
+      <g>lamb</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="lamb1" translation="a little lamb">
  <np def="indef" number="sing" tr="rheme">
    <noun>lamb</noun>
    <adj>little</adj>
  </np>
</example>

cleanup:

<example id="lamb1" translation="a little lamb">
-  <np def="indef" number="sing" tr="rheme">
-    <noun>lamb</noun>
-    <adj>little</adj>
+  <np def="indef" number="sing" tr="rheme" locus="number">
+    <word posp="noun" gloss="lamb"/>
+    <word posp="adj" gloss="little"/>
  </np>
</example>

module articles:

<example id="lamb1" translation="a little lamb">
-  <np def="indef" number="sing" tr="rheme" locus="number">
+  <np number="sing" tr="rheme" locus="number">
    <word posp="noun" gloss="lamb"/>
    <word posp="adj" gloss="little"/>
  </np>
</example>

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

submodule transform_adj
<example id="lamb1" translation="a little lamb">
  <np number="sing" tr="rheme" locus="number">
    <word gloss="lamb" lexposp="noun" posp="noun">
      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
    </word>
  </np>
</example>

module affixdensity:

<example id="lamb1" translation="a little lamb">
  <np number="sing" tr="rheme" locus="number">
-    <word posp="noun" gloss="lamb"/>
-    <word posp="adj" gloss="little"/>
+    <word gloss="lamb" lexposp="noun" posp="noun">
+      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
+      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
+    </word>
  </np>
</example>

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="lamb1" translation="a little lamb">
-  <np number="sing" tr="rheme" locus="number">
+  <np number="sing" tr="rheme" locus="number" case="NOM">
    <word gloss="lamb" lexposp="noun" posp="noun">
      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
    </word>
  </np>
</example>

module addgender:

<example id="lamb1" translation="a little lamb">
-  <np number="sing" tr="rheme" locus="number" case="NOM">
+  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word gloss="lamb" lexposp="noun" posp="noun">
      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
    </word>
  </np>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

No change.

prodrop:

No change.

addclitics:

<example id="lamb1" translation="a little lamb">
  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word gloss="lamb" lexposp="noun" posp="noun">
      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
    </word>
+    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="lamb1" translation="a little lamb">
  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
-    <word gloss="lamb" lexposp="noun" posp="noun">
+    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
    </word>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

addaffixes:

About to call getSlotValue for lamb/noun/case/obligatory
Got NOM
<example id="lamb1" translation="a little lamb">
  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
      <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
    </word>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
</example>

flatten:

<example id="lamb1" translation="a little lamb">
-  <np number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
-    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4">
+  <flat>
    <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
+    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
-    </word>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
+  </flat>
</example>

addvocab:

<example id="lamb1" translation="a little lamb">
  <flat>
-    <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj"/>
-    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj" attach="prefix" ph=""></thingy>
+    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x" slots="Cir Cmr">ʃə#꜖d͡ʑɔi꜒x</word>
+    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj" attach="suffix" ph="d&#x361;z a &#xA712; l" slots="Cmr Cms">d͡za꜒l</thingy>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/x/ + /d͡z/ > // + /s/
/l/ + /x/ > // + /ɡ/
<example id="lamb1" translation="a little lamb">
  <flat>
    <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj" attach="prefix" ph=""></thingy>
-    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x" slots="Cir Cmr">ʃə#꜖d͡ʑɔi꜒x</word>
-    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj" attach="suffix" ph="d&#x361;z a &#xA712; l" slots="Cmr Cms">d͡za꜒l</thingy>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712;" underlying="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x">ʃə#꜖d͡ʑɔi꜒</word>
+    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj" attach="suffix" ph="s a &#xA712;" underlying="d&#x361;z a &#xA712; l">sa꜒</thingy>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="lamb1" translation="a little lamb">
  <flat>
-    <thingy gloss="little&#x2081;" type="nounnounderivbef" origposp="adj" attach="prefix" ph=""></thingy>
-    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712;" underlying="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x">ʃə#꜖d͡ʑɔi꜒</word>
-    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj" attach="suffix" ph="s a &#xA712;" underlying="d&#x361;z a &#xA712; l">sa꜒</thingy>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="lamb" lexposp="noun" posp="noun" number="sing" tr="rheme" locus="number" case="NOM" gender="cl.4" underlying="&#x283; &#x259;# &#xA716; d&#x361;&#x291; &#x254;i &#xA712; x">ʃə#꜖d͡ʑɔi꜒</word>
+    <thingy gloss="little&#x2082;" type="nounnounderivaft" origposp="adj" underlying="d&#x361;z a &#xA712; l">sa꜒</thingy>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʃə̃꜖d͡ʑɔi꜒x&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;lamb&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-d͡za꜒l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;little&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>ʃə̃꜖d͡ʑɔi꜒sa꜒ɡa꜒t͡ʃ</p>
+  <p>شں࣮ࣆي࣭س࣭گ࣭چ</p>
+  <il>
+    <w>
+      <o>ʃə̃꜖d͡ʑɔi꜒x</o>
+      <g>lamb</g>
+    </w>
+    <w>
+      <o>-d͡za꜒l</o>
+      <g>little</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="love" translation="I love you.">
  <s>
    <vp tam="gnomic">
      <verb>love</verb>
    </vp>
    <np number="sing" def="neither" role="subj">
      <pron person="1excl" number="sing"/>
    </np>
    <np number="sing" def="neither" role="obj">
      <pron person="2" number="sing"/>
    </np>
  </s>
</example>

cleanup:

<example id="love" translation="I love you.">
  <s>
-    <vp tam="gnomic">
-      <verb>love</verb>
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+      <word posp="verb" gloss="love"/>
    </vp>
-    <np number="sing" def="neither" role="subj">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" role="subj" locus="number">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np number="sing" def="neither" role="obj">
-      <pron person="2" number="sing"/>
+    <np number="sing" def="neither" role="obj" locus="number">
+      <word person="2" number="sing" posp="pron"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="love" translation="I love you.">
  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np number="sing" def="neither" role="obj" locus="number">
      <word person="2" number="sing" posp="pron"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="love" translation="I love you.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number">
+    <np number="sing" def="neither" role="subj" locus="number" case="NOM">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np number="sing" def="neither" role="obj" locus="number">
+    <np number="sing" def="neither" role="obj" locus="number" case="ACC">
      <word person="2" number="sing" posp="pron"/>
    </np>
  </s>
</example>

module addgender:

No change.

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="love" translation="I love you.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="love"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="NOM">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np number="sing" def="neither" role="obj" locus="number" case="ACC">
-      <word person="2" number="sing" posp="pron"/>
+      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
    </np>
  </s>
</example>

copyuptophrase:

<example id="love" translation="I love you.">
  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
+    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
      <word posp="verb" gloss="love"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="NOM">
+    <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
-    <np number="sing" def="neither" role="obj" locus="number" case="ACC">
+    <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="love" translation="I love you.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
+      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="love"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="love" translation="I love you.">
  <s>
    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
-      <word posp="verb" gloss="love"/>
+      <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
-      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
    </np>
    <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
-      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
+      <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
    </np>
  </s>
</example>

addaffixes:

No change.

flatten:

<example id="love" translation="I love you.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
-    </np>
-    <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="love" translation="I love you.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s" slots="Cir Cfr">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

<example id="love" translation="I love you.">
  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s" slots="Cir Cfr">li꜒t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
  </flat>
</example>

removetags:

<example id="love" translation="I love you.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s">li꜒t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM">k͡xø꜒t</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC">ɡø꜖z</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;li꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;love&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡø꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;2.sing&lt;/span&gt;&lt;/span&gt;</p>
+  <p>li꜒t͡s ni꜖r k͡xø꜒t ɡø꜖z</p>
+  <p>ل࣭څ ن࣮ر کخ࣭ت گ࣮ز</p>
+  <il>
+    <w>
+      <o>li꜒t͡s</o>
+      <g>love</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>ɡø꜖z</o>
+      <g>2.sing</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
    <np def="def" number="sing">
      <noun>table</noun>
    </np>
  </pp>
</example>

cleanup:

<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
-    <np def="def" number="sing">
-      <noun>table</noun>
+    <np def="def" number="sing" locus="number">
+      <word posp="noun" gloss="table"/>
    </np>
  </pp>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
-    <np def="def" number="sing" locus="number">
+    <np def="def" number="sing" locus="number" case="LOC">
      <word posp="noun" gloss="table"/>
    </np>
+    <word gloss="in_surface" posp="pp"/>
  </pp>
</example>

module constorder:

No change.

module casemarking:

No change.

module addgender:

<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
-    <np def="def" number="sing" locus="number" case="LOC">
+    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
      <word posp="noun" gloss="table"/>
    </np>
    <word gloss="in_surface" posp="pp"/>
  </pp>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

No change.

prodrop:

No change.

addclitics:

<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
      <word posp="noun" gloss="table"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <word gloss="in_surface" posp="pp"/>
  </pp>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
-      <word posp="noun" gloss="table"/>
+      <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    <word gloss="in_surface" posp="pp"/>
+    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes"/>
  </pp>
</example>

addaffixes:

About to call getSlotValue for table/noun/case/obligatory
Got LOC
<example id="adpos1" translation="on the table">
  <pp p="in" location="surface" precise="yes">
    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
      <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="LOC"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes"/>
  </pp>
</example>

flatten:

<example id="adpos1" translation="on the table">
-  <pp p="in" location="surface" precise="yes">
-    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
+  <flat>
    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="LOC"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes"/>
-  </pp>
+  </flat>
</example>

addvocab:

<example id="adpos1" translation="on the table">
  <flat>
-    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="LOC"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes"/>
+    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="x e&#x2D0; &#xA712; p" slots="Cir Cmr">xeː꜒p</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s" slots="Cmr Cfs">tə#꜒s</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes" ph="m o &#xA712; b" slots="Cir Cfr">mo꜒b</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/p/ + /t/ > // + /t/
<example id="adpos1" translation="on the table">
  <flat>
-    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="x e&#x2D0; &#xA712; p" slots="Cir Cmr">xeː꜒p</word>
-    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s" slots="Cmr Cfs">tə#꜒s</thingy>
+    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="x e&#x2D0; &#xA712;" underlying="x e&#x2D0; &#xA712; p">xeː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s">tə#꜒s</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes" ph="m o &#xA712; b" slots="Cir Cfr">mo꜒b</word>
+    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes" ph="m o &#xA712; b">mo꜒b</word>
  </flat>
</example>

removetags:

<example id="adpos1" translation="on the table">
  <flat>
-    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="x e&#x2D0; &#xA712;" underlying="x e&#x2D0; &#xA712; p">xeː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s">tə#꜒s</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes" ph="m o &#xA712; b">mo꜒b</word>
+    <word posp="noun" gloss="table" def="def" number="sing" locus="number" case="LOC" gender="cl.1" underlying="x e&#x2D0; &#xA712; p">xeː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC">tə#꜒s</thingy>
+    <word gloss="in_surface" posp="pp" p="in" location="surface" precise="yes">mo꜒b</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xeː꜒p&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;table&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-tə̃꜒s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;LOC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;mo꜒b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;in_surface&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xeː꜒tə̃꜒s mo꜒b</p>
+  <p>خي࣭تں࣭س م࣭ب</p>
+  <il>
+    <w>
+      <o>xeː꜒p</o>
+      <g>table</g>
+    </w>
+    <w>
+      <o>-tə̃꜒s</o>
+      <g>LOC</g>
+    </w>
+    <w>
+      <o>mo꜒b</o>
+      <g>in_surface</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
    <np def="def" number="sing">
      <noun>box</noun>
    </np>
  </pp>
</example>

cleanup:

<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
-    <np def="def" number="sing">
-      <noun>box</noun>
+    <np def="def" number="sing" locus="number">
+      <word posp="noun" gloss="box"/>
    </np>
  </pp>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
-    <np def="def" number="sing" locus="number">
+    <np def="def" number="sing" locus="number" case="LOC">
      <word posp="noun" gloss="box"/>
    </np>
+    <word gloss="to_inside" posp="pp"/>
  </pp>
</example>

module constorder:

No change.

module casemarking:

No change.

module addgender:

<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
-    <np def="def" number="sing" locus="number" case="LOC">
+    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
      <word posp="noun" gloss="box"/>
    </np>
    <word gloss="to_inside" posp="pp"/>
  </pp>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

No change.

prodrop:

No change.

addclitics:

<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
      <word posp="noun" gloss="box"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <word gloss="to_inside" posp="pp"/>
  </pp>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
-      <word posp="noun" gloss="box"/>
+      <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    <word gloss="to_inside" posp="pp"/>
+    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes"/>
  </pp>
</example>

addaffixes:

About to call getSlotValue for box/noun/case/obligatory
Got LOC
<example id="adpos2" translation="into the box">
  <pp p="to" location="inside" precise="yes">
    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
      <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="LOC"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes"/>
  </pp>
</example>

flatten:

<example id="adpos2" translation="into the box">
-  <pp p="to" location="inside" precise="yes">
-    <np def="def" number="sing" locus="number" case="LOC" gender="cl.1">
+  <flat>
    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="LOC"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes"/>
-  </pp>
+  </flat>
</example>

addvocab:

<example id="adpos2" translation="into the box">
  <flat>
-    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="LOC"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes"/>
+    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="n y &#xA712; n &#xF8; &#xA712; z" slots="Cir Cmr">ny꜒nø꜒z</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s" slots="Cmr Cfs">tə#꜒s</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes" ph="&#x14B; y&#x2D0; &#xA716; d" slots="Cir Cfr">ŋyː꜖d</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/z/ + /t/ > // + /z/
<example id="adpos2" translation="into the box">
  <flat>
-    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="n y &#xA712; n &#xF8; &#xA712; z" slots="Cir Cmr">ny꜒nø꜒z</word>
-    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="t &#x259;# &#xA712; s" slots="Cmr Cfs">tə#꜒s</thingy>
+    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="n y &#xA712; n &#xF8; &#xA712;" underlying="n y &#xA712; n &#xF8; &#xA712; z">ny꜒nø꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="z &#x259;# &#xA712; s" underlying="t &#x259;# &#xA712; s">zə#꜒s</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes" ph="&#x14B; y&#x2D0; &#xA716; d" slots="Cir Cfr">ŋyː꜖d</word>
+    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes" ph="&#x14B; y&#x2D0; &#xA716; d">ŋyː꜖d</word>
  </flat>
</example>

removetags:

<example id="adpos2" translation="into the box">
  <flat>
-    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1" ph="n y &#xA712; n &#xF8; &#xA712;" underlying="n y &#xA712; n &#xF8; &#xA712; z">ny꜒nø꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="LOC" attach="suffix" ph="z &#x259;# &#xA712; s" underlying="t &#x259;# &#xA712; s">zə#꜒s</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes" ph="&#x14B; y&#x2D0; &#xA716; d">ŋyː꜖d</word>
+    <word posp="noun" gloss="box" def="def" number="sing" locus="number" case="LOC" gender="cl.1" underlying="n y &#xA712; n &#xF8; &#xA712; z">ny꜒nø꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="LOC" underlying="t &#x259;# &#xA712; s">zə#꜒s</thingy>
+    <word gloss="to_inside" posp="pp" p="to" location="inside" precise="yes">ŋyː꜖d</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ny꜒nø꜒z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;box&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-tə̃꜒s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;LOC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋyː꜖d&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;to_inside&lt;/span&gt;&lt;/span&gt;</p>
+  <p>ny꜒nø꜒zə̃꜒s ŋyː꜖d</p>
+  <p>ن࣭ن࣭زں࣭س ڭي࣮د</p>
+  <il>
+    <w>
+      <o>ny꜒nø꜒z</o>
+      <g>box</g>
+    </w>
+    <w>
+      <o>-tə̃꜒s</o>
+      <g>LOC</g>
+    </w>
+    <w>
+      <o>ŋyː꜖d</o>
+      <g>to_inside</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="adpos3" translation="with me">
  <pp role="comitative">
    <np number="sing" def="neither">
      <pron person="1excl" number="sing"/>
    </np>
  </pp>
</example>

cleanup:

<example id="adpos3" translation="with me">
  <pp role="comitative">
-    <np number="sing" def="neither">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" locus="number">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
  </pp>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

<example id="adpos3" translation="with me">
  <pp role="comitative">
-    <np number="sing" def="neither" locus="number">
+    <np number="sing" def="neither" locus="number" case="LOC">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
+    <word gloss="COMIT" posp="pp"/>
  </pp>
</example>

module constorder:

No change.

module casemarking:

No change.

module addgender:

No change.

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="adpos3" translation="with me">
  <pp role="comitative">
    <np number="sing" def="neither" locus="number" case="LOC">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <word gloss="COMIT" posp="pp"/>
  </pp>
</example>

copyuptophrase:

<example id="adpos3" translation="with me">
  <pp role="comitative">
-    <np number="sing" def="neither" locus="number" case="LOC">
+    <np number="sing" def="neither" locus="number" case="LOC" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <word gloss="COMIT" posp="pp"/>
  </pp>
</example>

prodrop:

No change.

addclitics:

No change.

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="adpos3" translation="with me">
  <pp role="comitative">
    <np number="sing" def="neither" locus="number" case="LOC" person="1excl">
-      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC"/>
    </np>
-    <word gloss="COMIT" posp="pp"/>
+    <word gloss="COMIT" posp="pp" role="comitative"/>
  </pp>
</example>

addaffixes:

No change.

flatten:

<example id="adpos3" translation="with me">
-  <pp role="comitative">
-    <np number="sing" def="neither" locus="number" case="LOC" person="1excl">
+  <flat>
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC"/>
-    </np>
    <word gloss="COMIT" posp="pp" role="comitative"/>
-  </pp>
+  </flat>
</example>

addvocab:

<example id="adpos3" translation="with me">
  <flat>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC"/>
-    <word gloss="COMIT" posp="pp" role="comitative"/>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p" slots="Cir Cfr">ŋy꜒xo꜒p</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

<example id="adpos3" translation="with me">
  <flat>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p" slots="Cir Cfr">ŋy꜒xo꜒p</word>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p">ŋy꜒xo꜒p</word>
  </flat>
</example>

removetags:

<example id="adpos3" translation="with me">
  <flat>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <word gloss="COMIT" posp="pp" role="comitative" ph="&#x14B; y &#xA712; x o &#xA712; p">ŋy꜒xo꜒p</word>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" locus="number" case="LOC">k͡xø꜒t</word>
+    <word gloss="COMIT" posp="pp" role="comitative">ŋy꜒xo꜒p</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋy꜒xo꜒p&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMIT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>k͡xø꜒t ŋy꜒xo꜒p</p>
+  <p>کخ࣭ت ڭ࣭خ࣭پ</p>
+  <il>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>ŋy꜒xo꜒p</o>
+      <g>COMIT</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
    <vp tam="past-punct">
      <verb>kill</verb>
    </vp>
    <np number="sing" def="def" role="subj">
      <noun>jaguar</noun>
    </np>
    <np number="sing" def="def" role="obj">
      <noun>hunter</noun>
    </np>
  </s>
</example>

cleanup:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
-    <vp tam="past-punct">
-      <verb>kill</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="kill"/>
    </vp>
-    <np number="sing" def="def" role="subj">
-      <noun>jaguar</noun>
+    <np number="sing" def="def" role="subj" locus="number">
+      <word posp="noun" gloss="jaguar"/>
    </np>
-    <np number="sing" def="def" role="obj">
-      <noun>hunter</noun>
+    <np number="sing" def="def" role="obj" locus="number">
+      <word posp="noun" gloss="hunter"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number">
      <word posp="noun" gloss="jaguar"/>
    </np>
    <np number="sing" def="def" role="obj" locus="number">
      <word posp="noun" gloss="hunter"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
-    <np number="sing" def="def" role="subj" locus="number">
+    <np number="sing" def="def" role="subj" locus="number" case="ERG">
      <word posp="noun" gloss="jaguar"/>
    </np>
-    <np number="sing" def="def" role="obj" locus="number">
+    <np number="sing" def="def" role="obj" locus="number" case="NOM">
      <word posp="noun" gloss="hunter"/>
    </np>
  </s>
</example>

module addgender:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
-    <np number="sing" def="def" role="subj" locus="number" case="ERG">
+    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="jaguar"/>
    </np>
-    <np number="sing" def="def" role="obj" locus="number" case="NOM">
+    <np number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="jaguar"/>
    </np>
    <np number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kill"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="jaguar"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="kill"/>
+      <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
-      <word posp="noun" gloss="jaguar"/>
+      <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2">
-      <word posp="noun" gloss="hunter"/>
+      <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for jaguar/noun/case/obligatory
Got ERG
About to call getSlotValue for hunter/noun/case/obligatory
Got NOM
<example id="wo1" translation="The jaguar killed the hunter.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2">
      <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="wo1" translation="The jaguar killed the hunter.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2">
    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="wo1" translation="The jaguar killed the hunter.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2" ph="d&#x361;&#x291; y &#xA712; b" slots="Cir Cfr">d͡ʑy꜒b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z" slots="Cir Cmr">ʃi꜒d͡ʑo꜖z</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/z/ + /n/ > // + /n/
/ɗ/ + /x/ > // + /x/
<example id="wo1" translation="The jaguar killed the hunter.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2" ph="d&#x361;&#x291; y &#xA712; b" slots="Cir Cfr">d͡ʑy꜒b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z" slots="Cir Cmr">ʃi꜒d͡ʑo꜖z</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2" ph="d&#x361;&#x291; y &#xA712; b">d͡ʑy꜒b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716;" underlying="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z">ʃi꜒d͡ʑo꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="wo1" translation="The jaguar killed the hunter.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2" ph="d&#x361;&#x291; y &#xA712; b">d͡ʑy꜒b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716;" underlying="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z">ʃi꜒d͡ʑo꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.2">d͡ʑy꜒b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="jaguar" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" underlying="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z">ʃi꜒d͡ʑo꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" role="obj" locus="number" case="NOM" gender="cl.2" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;kill&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʃi꜒d͡ʑo꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;jaguar&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;la꜖t͡sø꜖ɗ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;hunter&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l d͡ʑy꜒b ni꜖r ʃi꜒d͡ʑo꜖ni꜖d͡ʑ la꜖t͡sø꜖xa꜒t͡ʃ</p>
+  <p>خ࣮ل ࣆ࣭ب ن࣮ر ش࣭ࣆ࣮ن࣮ࣆ ل࣮څ࣮خ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒b</o>
+      <g>kill</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>ʃi꜒d͡ʑo꜖z</o>
+      <g>jaguar</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>la꜖t͡sø꜖ɗ</o>
+      <g>hunter</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp tam="past-punct">
      <verb>eat</verb>
    </vp>
    <np number="sing" def="def" role="subj">
      <noun>lion</noun>
    </np>
    <np role="obj">
      <np type="owner_owned">
        <np type="owner_owned">
          <np number="sing" def="def">
            <noun>hunter</noun>
          </np>
          <np number="sing" def="def">
            <noun>daughter</noun>
          </np>
        </np>
        <np number="sing" def="def">
          <noun>dog</noun>
        </np>
      </np>
    </np>
  </s>
</example>

cleanup:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
-    <vp tam="past-punct">
-      <verb>eat</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="eat"/>
    </vp>
-    <np number="sing" def="def" role="subj">
-      <noun>lion</noun>
+    <np number="sing" def="def" role="subj" locus="number">
+      <word posp="noun" gloss="lion"/>
    </np>
    <np role="obj">
      <np type="owner_owned">
-        <np type="owner_owned">
-          <np number="sing" def="def">
-            <noun>hunter</noun>
+        <np type="owner_owned" role="owner">
+          <np number="sing" def="def" locus="number" role="owner">
+            <word posp="noun" gloss="hunter"/>
          </np>
-          <np number="sing" def="def">
-            <noun>daughter</noun>
+          <np number="sing" def="def" locus="number" role="owned">
+            <word posp="noun" gloss="daughter"/>
          </np>
        </np>
-        <np number="sing" def="def">
-          <noun>dog</noun>
+        <np number="sing" def="def" locus="number" role="owned">
+          <word posp="noun" gloss="dog"/>
        </np>
      </np>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="eat"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number">
      <word posp="noun" gloss="lion"/>
    </np>
    <np role="obj">
      <np type="owner_owned">
        <np type="owner_owned" role="owner">
          <np number="sing" def="def" locus="number" role="owner">
            <word posp="noun" gloss="hunter"/>
          </np>
          <np number="sing" def="def" locus="number" role="owned">
            <word posp="noun" gloss="daughter"/>
          </np>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="dog"/>
        </np>
      </np>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="eat"/>
    </vp>
-    <np number="sing" def="def" role="subj" locus="number">
+    <np number="sing" def="def" role="subj" locus="number" case="ERG">
      <word posp="noun" gloss="lion"/>
    </np>
-    <np role="obj">
+    <np role="obj" case="NOM">
      <np type="owner_owned">
        <np type="owner_owned" role="owner">
          <np number="sing" def="def" locus="number" role="owner">
            <word posp="noun" gloss="hunter"/>
          </np>
          <np number="sing" def="def" locus="number" role="owned">
            <word posp="noun" gloss="daughter"/>
          </np>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="dog"/>
        </np>
      </np>
    </np>
  </s>
</example>

module addgender:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="eat"/>
    </vp>
-    <np number="sing" def="def" role="subj" locus="number" case="ERG">
+    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
    </np>
    <np role="obj" case="NOM">
-      <np type="owner_owned">
-        <np type="owner_owned" role="owner">
-          <np number="sing" def="def" locus="number" role="owner">
+      <np type="owner_owned" gender="cl.4">
+        <np type="owner_owned" role="owner" gender="cl.1">
+          <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
            <word posp="noun" gloss="hunter"/>
          </np>
-          <np number="sing" def="def" locus="number" role="owned">
+          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="daughter"/>
          </np>
        </np>
-        <np number="sing" def="def" locus="number" role="owned">
+        <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
          <word posp="noun" gloss="dog"/>
        </np>
      </np>
    </np>
  </s>
</example>

module propagatenumber:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="eat"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
    </np>
-    <np role="obj" case="NOM">
-      <np type="owner_owned" gender="cl.4">
-        <np type="owner_owned" role="owner" gender="cl.1">
+    <np role="obj" case="NOM" number="sing">
+      <np type="owner_owned" gender="cl.4" number="sing">
+        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
            <word posp="noun" gloss="hunter"/>
          </np>
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="daughter"/>
          </np>
        </np>
        <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
          <word posp="noun" gloss="dog"/>
        </np>
      </np>
    </np>
  </s>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="eat"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
    </np>
    <np role="obj" case="NOM" number="sing">
      <np type="owner_owned" gender="cl.4" number="sing">
-        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
-          <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-            <word posp="noun" gloss="hunter"/>
+        <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
+          <word posp="noun" gloss="dog"/>
        </np>
+        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="daughter"/>
          </np>
+          <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
+            <word posp="noun" gloss="hunter"/>
          </np>
-        <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
-          <word posp="noun" gloss="dog"/>
        </np>
      </np>
    </np>
  </s>
</example>

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <word posp="verb" gloss="eat"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
    </np>
-    <np role="obj" case="NOM" number="sing">
+    <np role="obj" case="NOM" number="sing" gender="cl.4">
      <np type="owner_owned" gender="cl.4" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
          <word posp="noun" gloss="dog"/>
        </np>
        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="daughter"/>
          </np>
          <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
            <word posp="noun" gloss="hunter"/>
          </np>
        </np>
      </np>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="eat"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" case="NOM" number="sing" gender="cl.4">
      <np type="owner_owned" gender="cl.4" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
          <word posp="noun" gloss="dog"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np type="owner_owned" role="owner" gender="cl.1" number="sing">
          <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
            <word posp="noun" gloss="daughter"/>
+            <thingy type="npnumber" function="enclitic" gloss="sing"/>
          </np>
          <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
            <word posp="noun" gloss="hunter"/>
+            <thingy type="npnumber" function="enclitic" gloss="sing"/>
          </np>
        </np>
      </np>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="eat"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    <np role="obj" case="NOM" number="sing" gender="cl.4">
-      <np type="owner_owned" gender="cl.4" number="sing">
+    <np type="owner_owned" gender="cl.4" number="sing" role="obj" case="NOM">
      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
        <word posp="noun" gloss="dog"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <np type="owner_owned" role="owner" gender="cl.1" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
          <word posp="noun" gloss="daughter"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
          <word posp="noun" gloss="hunter"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
      </np>
    </np>
-    </np>
  </s>
</example>

unwrapOwnerOwned:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="eat"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    <np type="owner_owned" gender="cl.4" number="sing" role="obj" case="NOM">
-      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM">
      <word posp="noun" gloss="dog"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-      <np type="owner_owned" role="owner" gender="cl.1" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="daughter"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-      </np>
-    </np>
  </s>
</example>

movedowntoword:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="eat"/>
+      <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
-      <word posp="noun" gloss="lion"/>
+      <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM">
-      <word posp="noun" gloss="dog"/>
+      <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
-      <word posp="noun" gloss="daughter"/>
+      <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
-      <word posp="noun" gloss="hunter"/>
+      <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>
calling defaultval for case/
defaultval: noun, case
returning NOM
calling defaultval for case/
defaultval: noun, case
returning NOM

addaffixes:

About to call getSlotValue for lion/noun/case/obligatory
Got ERG
About to call getSlotValue for dog/noun/case/obligatory
Got NOM
About to call getSlotValue for daughter/noun/case/obligatory
Got NOM
About to call getSlotValue for hunter/noun/case/obligatory
Got NOM
<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM">
      <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
      <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4">
    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM">
    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" locus="number" role="owner" gender="cl.2">
    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="&#x257; ai &#xA712; &#x292;" slots="Cir Cfr">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="w y &#xA712; j u &#xA716; w" slots="Cir Cmr">wy꜒ju꜖w</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM" ph="s i&#x2D0; &#xA716; t&#x361;s" slots="Cir Cmr">siː꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="k &#xF8; &#xA716; t&#x361;s" slots="Cir Cmr">kø꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/w/ + /n/ > // + /n/
/t͡s/ + /x/ > // + /k͡x/
/t͡s/ + /x/ > // + /k͡x/
/ɗ/ + /x/ > // + /x/
<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="&#x257; ai &#xA712; &#x292;" slots="Cir Cfr">ɗai꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="w y &#xA712; j u &#xA716; w" slots="Cir Cmr">wy꜒ju꜖w</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="&#x257; ai &#xA712; &#x292;">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="w y &#xA712; j u &#xA716;" underlying="w y &#xA712; j u &#xA716; w">wy꜒ju꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM" ph="s i&#x2D0; &#xA716; t&#x361;s" slots="Cir Cmr">siː꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM" ph="s i&#x2D0; &#xA716;" underlying="s i&#x2D0; &#xA716; t&#x361;s">siː꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="k &#xF8; &#xA716; t&#x361;s" slots="Cir Cmr">kø꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="k &#xF8; &#xA716;" underlying="k &#xF8; &#xA716; t&#x361;s">kø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="wo2" translation="The lion ate the hunter's daughter's dog.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="&#x257; ai &#xA712; &#x292;">ɗai꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" ph="w y &#xA712; j u &#xA716;" underlying="w y &#xA712; j u &#xA716; w">wy꜒ju꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM" ph="s i&#x2D0; &#xA716;" underlying="s i&#x2D0; &#xA716; t&#x361;s">siː꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" ph="k &#xF8; &#xA716;" underlying="k &#xF8; &#xA716; t&#x361;s">kø꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="lion" number="sing" def="def" role="subj" locus="number" case="ERG" gender="cl.4" underlying="w y &#xA712; j u &#xA716; w">wy꜒ju꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="dog" number="sing" def="def" locus="number" role="owned" gender="cl.4" case="NOM" underlying="s i&#x2D0; &#xA716; t&#x361;s">siː꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="daughter" number="sing" def="def" locus="number" role="owned" gender="cl.1" underlying="k &#xF8; &#xA716; t&#x361;s">kø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="hunter" number="sing" def="def" locus="number" role="owner" gender="cl.2" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗai꜒ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;eat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;wy꜒ju꜖w&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;lion&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;siː꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;dog&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;kø꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;daughter&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;la꜖t͡sø꜖ɗ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;hunter&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l ɗai꜒ʒ ni꜖r wy꜒ju꜖ni꜖d͡ʑ siː꜖k͡xa꜒t͡ʃ kø꜖k͡xa꜒t͡ʃ la꜖t͡sø꜖xa꜒t͡ʃ</p>
+  <p>خ࣮ل ڏي࣭ژ ن࣮ر و࣭ي࣮ن࣮ࣆ سي࣮کخ࣭چ ك࣮کخ࣭چ ل࣮څ࣮خ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ɗai꜒ʒ</o>
+      <g>eat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>wy꜒ju꜖w</o>
+      <g>lion</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>siː꜖t͡s</o>
+      <g>dog</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>kø꜖t͡s</o>
+      <g>daughter</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>la꜖t͡sø꜖ɗ</o>
+      <g>hunter</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="poss3" translation="your son's friend's book">
  <np type="owner_owned">
    <np type="owner_owned">
      <np type="owner_owned">
        <np number="sing" def="neither">
          <pron person="2" number="sing"/>
        </np>
        <np number="sing" def="def">
          <noun>son</noun>
        </np>
      </np>
      <np number="sing" def="def">
        <noun>friend</noun>
      </np>
    </np>
    <np number="sing" def="def">
      <noun>book</noun>
    </np>
  </np>
</example>

cleanup:

<example id="poss3" translation="your son's friend's book">
  <np type="owner_owned">
-    <np type="owner_owned">
-      <np type="owner_owned">
-        <np number="sing" def="neither">
-          <pron person="2" number="sing"/>
+    <np type="owner_owned" role="owner">
+      <np type="owner_owned" role="owner">
+        <np number="sing" def="neither" locus="number" role="owner">
+          <word person="2" number="sing" posp="pron"/>
        </np>
-        <np number="sing" def="def">
-          <noun>son</noun>
+        <np number="sing" def="def" locus="number" role="owned">
+          <word posp="noun" gloss="son"/>
        </np>
      </np>
-      <np number="sing" def="def">
-        <noun>friend</noun>
+      <np number="sing" def="def" locus="number" role="owned">
+        <word posp="noun" gloss="friend"/>
      </np>
    </np>
-    <np number="sing" def="def">
-      <noun>book</noun>
+    <np number="sing" def="def" locus="number" role="owned">
+      <word posp="noun" gloss="book"/>
    </np>
  </np>
</example>

module articles:

No change.

module nonpastonly:

No change.

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="poss3" translation="your son's friend's book">
-  <np type="owner_owned">
+  <np type="owner_owned" case="NOM">
    <np type="owner_owned" role="owner">
      <np type="owner_owned" role="owner">
        <np number="sing" def="neither" locus="number" role="owner">
          <word person="2" number="sing" posp="pron"/>
        </np>
        <np number="sing" def="def" locus="number" role="owned">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
      <np number="sing" def="def" locus="number" role="owned">
        <word posp="noun" gloss="friend"/>
      </np>
    </np>
    <np number="sing" def="def" locus="number" role="owned">
      <word posp="noun" gloss="book"/>
    </np>
  </np>
</example>

module addgender:

<example id="poss3" translation="your son's friend's book">
-  <np type="owner_owned" case="NOM">
-    <np type="owner_owned" role="owner">
-      <np type="owner_owned" role="owner">
+  <np type="owner_owned" case="NOM" gender="cl.1">
+    <np type="owner_owned" role="owner" gender="cl.4">
+      <np type="owner_owned" role="owner" gender="cl.2">
        <np number="sing" def="neither" locus="number" role="owner">
          <word person="2" number="sing" posp="pron"/>
        </np>
-        <np number="sing" def="def" locus="number" role="owned">
+        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
-      <np number="sing" def="def" locus="number" role="owned">
+      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
        <word posp="noun" gloss="friend"/>
      </np>
    </np>
-    <np number="sing" def="def" locus="number" role="owned">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="book"/>
    </np>
  </np>
</example>

module propagatenumber:

<example id="poss3" translation="your son's friend's book">
-  <np type="owner_owned" case="NOM" gender="cl.1">
-    <np type="owner_owned" role="owner" gender="cl.4">
-      <np type="owner_owned" role="owner" gender="cl.2">
+  <np type="owner_owned" case="NOM" gender="cl.1" number="sing">
+    <np type="owner_owned" role="owner" gender="cl.4" number="sing">
+      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
        <np number="sing" def="neither" locus="number" role="owner">
          <word person="2" number="sing" posp="pron"/>
        </np>
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
      </np>
      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
        <word posp="noun" gloss="friend"/>
      </np>
    </np>
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="book"/>
    </np>
  </np>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

<example id="poss3" translation="your son's friend's book">
  <np type="owner_owned" case="NOM" gender="cl.1" number="sing">
+    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
+      <word posp="noun" gloss="book"/>
+    </np>
    <np type="owner_owned" role="owner" gender="cl.4" number="sing">
-      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
-        <np number="sing" def="neither" locus="number" role="owner">
-          <word person="2" number="sing" posp="pron"/>
+      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
+        <word posp="noun" gloss="friend"/>
      </np>
+      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
-      </np>
-      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
-        <word posp="noun" gloss="friend"/>
+        <np number="sing" def="neither" locus="number" role="owner">
+          <word person="2" number="sing" posp="pron"/>
        </np>
      </np>
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
-      <word posp="noun" gloss="book"/>
    </np>
  </np>
</example>

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="poss3" translation="your son's friend's book">
  <np type="owner_owned" case="NOM" gender="cl.1" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="book"/>
    </np>
    <np type="owner_owned" role="owner" gender="cl.4" number="sing">
      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
        <word posp="noun" gloss="friend"/>
      </np>
      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
        <np number="sing" def="neither" locus="number" role="owner">
-          <word person="2" number="sing" posp="pron"/>
+          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
      </np>
    </np>
  </np>
</example>

copyuptophrase:

<example id="poss3" translation="your son's friend's book">
  <np type="owner_owned" case="NOM" gender="cl.1" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="book"/>
    </np>
    <np type="owner_owned" role="owner" gender="cl.4" number="sing">
      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
        <word posp="noun" gloss="friend"/>
      </np>
      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
        </np>
-        <np number="sing" def="neither" locus="number" role="owner">
+        <np number="sing" def="neither" locus="number" role="owner" person="2">
          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
      </np>
    </np>
  </np>
</example>

prodrop:

No change.

addclitics:

<example id="poss3" translation="your son's friend's book">
  <np type="owner_owned" case="NOM" gender="cl.1" number="sing">
    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
      <word posp="noun" gloss="book"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np type="owner_owned" role="owner" gender="cl.4" number="sing">
      <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
        <word posp="noun" gloss="friend"/>
+        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
        <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
          <word posp="noun" gloss="son"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="neither" locus="number" role="owner" person="2">
          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
      </np>
    </np>
  </np>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

<example id="poss3" translation="your son's friend's book">
-  <np type="owner_owned" case="NOM" gender="cl.1" number="sing">
-    <np number="sing" def="def" locus="number" role="owned" gender="cl.1">
+  <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM">
    <word posp="noun" gloss="book"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
-    <np type="owner_owned" role="owner" gender="cl.4" number="sing">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
    <word posp="noun" gloss="friend"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
-      <np type="owner_owned" role="owner" gender="cl.2" number="sing">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
    <word posp="noun" gloss="son"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="neither" locus="number" role="owner" person="2">
    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
  </np>
-      </np>
-    </np>
-  </np>
</example>

movedowntoword:

<example id="poss3" translation="your son's friend's book">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM">
-    <word posp="noun" gloss="book"/>
+    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
-    <word posp="noun" gloss="friend"/>
+    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
-    <word posp="noun" gloss="son"/>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="neither" locus="number" role="owner" person="2">
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
  </np>
</example>
calling defaultval for case/
defaultval: noun, case
returning NOM
calling defaultval for case/
defaultval: noun, case
returning NOM

addaffixes:

About to call getSlotValue for book/noun/case/obligatory
Got NOM
About to call getSlotValue for friend/noun/case/obligatory
Got NOM
About to call getSlotValue for son/noun/case/obligatory
Got NOM
<example id="poss3" translation="your son's friend's book">
  <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM">
    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2"/>
+    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
  </np>
  <np number="sing" def="neither" locus="number" role="owner" person="2">
    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
  </np>
</example>

flatten:

<example id="poss3" translation="your son's friend's book">
-  <np number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM">
+  <flat>
    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
-  <np number="sing" def="def" locus="number" role="owned" gender="cl.4">
    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
-  <np number="sing" def="def" locus="number" role="owned" gender="cl.2">
    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-  </np>
-  <np number="sing" def="neither" locus="number" role="owner" person="2">
    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
-  </np>
+  </flat>
</example>

addvocab:

<example id="poss3" translation="your son's friend's book">
  <flat>
-    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner"/>
+    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM" ph="l i b e&#x2D0; r" slots="C C">libeːr</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4" ph="d u &#xA712; x" slots="Cir Cmr">du꜒x</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" ph="n o &#xA712; k" slots="Cir Cmr">no꜒k</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/r/ + /x/ > // + /ɡ/
/x/ + /x/ > // + /x/
/k/ + /x/ > // + /k/
<example id="poss3" translation="your son's friend's book">
  <flat>
-    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM" ph="l i b e&#x2D0; r" slots="C C">libeːr</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM" ph="l i b e&#x2D0;" underlying="l i b e&#x2D0; r">libeː</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4" ph="d u &#xA712; x" slots="Cir Cmr">du꜒x</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4" ph="d u &#xA712;" underlying="d u &#xA712; x">du꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" ph="n o &#xA712; k" slots="Cir Cmr">no꜒k</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" ph="n o &#xA712;" underlying="n o &#xA712; k">no꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
  </flat>
</example>

removetags:

<example id="poss3" translation="your son's friend's book">
  <flat>
-    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM" ph="l i b e&#x2D0;" underlying="l i b e&#x2D0; r">libeː</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4" ph="d u &#xA712;" underlying="d u &#xA712; x">du꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" ph="n o &#xA712;" underlying="n o &#xA712; k">no꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
+    <word posp="noun" gloss="book" number="sing" def="def" locus="number" role="owned" gender="cl.1" case="NOM" underlying="l i b e&#x2D0; r">libeː</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="friend" number="sing" def="def" locus="number" role="owned" gender="cl.4" underlying="d u &#xA712; x">du꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="son" number="sing" def="def" locus="number" role="owned" gender="cl.2" underlying="n o &#xA712; k">no꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" locus="number" role="owner">ɡø꜖z</word>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;libeːr&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;book&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;du꜒x&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;friend&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;no꜒k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;son&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡø꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;2.sing&lt;/span&gt;&lt;/span&gt;</p>
+  <p>libeːɡa꜒t͡ʃ du꜒xa꜒t͡ʃ no꜒ka꜒t͡ʃ ɡø꜖z</p>
+  <p>لبيگ࣭چ د࣭خ࣭چ ن࣭ك࣭چ گ࣮ز</p>
+  <il>
+    <w>
+      <o>libeːr</o>
+      <g>book</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>du꜒x</o>
+      <g>friend</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>no꜒k</o>
+      <g>son</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>ɡø꜖z</o>
+      <g>2.sing</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
    <vp tam="pres-state">
      <verb>sleep</verb>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme">
      <noun>cat</noun>
    </np>
  </s>
</example>

cleanup:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
-    <vp tam="pres-state">
-      <verb>sleep</verb>
+    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active">
+      <word posp="verb" gloss="sleep"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme">
-      <noun>cat</noun>
+    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
-    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="sleep"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="sleep"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module addgender:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES">
      <word posp="verb" gloss="sleep"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
-    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES">
+    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4">
      <word posp="verb" gloss="sleep"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="sleep"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="intr_stat" translation="The cat is sleeping.">
  <s>
    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
-      <word posp="verb" gloss="sleep"/>
+      <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cat/noun/case/obligatory
Got NOM
<example id="intr_stat" translation="The cat is sleeping.">
  <s>
    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="intr_stat" translation="The cat is sleeping.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="intr_stat" translation="The cat is sleeping.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4" ph="&#x261; &#xF8; &#xA716; &#x292;" slots="Cir Cfr">ɡø꜖ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /x/ > // + /k͡x/
<example id="intr_stat" translation="The cat is sleeping.">
  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4" ph="&#x261; &#xF8; &#xA716; &#x292;" slots="Cir Cfr">ɡø꜖ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4" ph="&#x261; &#xF8; &#xA716; &#x292;">ɡø꜖ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="intr_stat" translation="The cat is sleeping.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4" ph="&#x261; &#xF8; &#xA716; &#x292;">ɡø꜖ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="verb" gloss="sleep" negation="POS" question="not.Q" tense="present" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="3.sing.cl.4">ɡø꜖ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡø꜖ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;sleep&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>ɡø꜖ʒ ni꜖r nũː꜒k͡xa꜒t͡ʃ</p>
+  <p>گ࣮ژ ن࣮ر نوں࣭کخ࣭چ</p>
+  <il>
+    <w>
+      <o>ɡø꜖ʒ</o>
+      <g>sleep</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="intr_act" translation="The cat is running.">
  <s>
    <vp tam="pres-cont">
      <verb>run</verb>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme">
      <noun>cat</noun>
    </np>
  </s>
</example>

cleanup:

<example id="intr_act" translation="The cat is running.">
  <s>
-    <vp tam="pres-cont">
-      <verb>run</verb>
+    <vp tam="pres-cont" negation="POS" question="not.Q">
+      <word posp="verb" gloss="run"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme">
-      <noun>cat</noun>
+    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="intr_act" translation="The cat is running.">
  <s>
-    <vp tam="pres-cont" negation="POS" question="not.Q">
+    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
      <word posp="verb" gloss="run"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="intr_act" translation="The cat is running.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
      <word posp="verb" gloss="run"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module addgender:

<example id="intr_act" translation="The cat is running.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
      <word posp="verb" gloss="run"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="intr_act" translation="The cat is running.">
  <s>
-    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
+    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4">
      <word posp="verb" gloss="run"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="intr_act" translation="The cat is running.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="run"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="intr_act" translation="The cat is running.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
-      <word posp="verb" gloss="run"/>
+      <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cat/noun/case/obligatory
Got NOM
<example id="intr_act" translation="The cat is running.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="intr_act" translation="The cat is running.">
-  <s>
-    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4"/>
-    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="intr_act" translation="The cat is running.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4"/>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" ph="d y &#xA716; r" slots="Cir Cfr">dy꜖r</word>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /x/ > // + /k͡x/
<example id="intr_act" translation="The cat is running.">
  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" ph="d y &#xA716; r" slots="Cir Cfr">dy꜖r</word>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" ph="d y &#xA716; r">dy꜖r</word>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="intr_act" translation="The cat is running.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" ph="d y &#xA716; r">dy꜖r</word>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="verb" gloss="run" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4">dy꜖r</word>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;dy꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;run&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>dy꜖r nũː꜒k͡xa꜒t͡ʃ</p>
+  <p>د࣮ر نوں࣭کخ࣭چ</p>
+  <il>
+    <w>
+      <o>dy꜖r</o>
+      <g>run</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
    <vp tam="pres-cont">
      <verb>chase</verb>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme">
      <noun>cat</noun>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme">
      <noun>mouse</noun>
    </np>
  </s>
</example>

cleanup:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
-    <vp tam="pres-cont">
-      <verb>chase</verb>
+    <vp tam="pres-cont" negation="POS" question="not.Q">
+      <word posp="verb" gloss="chase"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme">
-      <noun>cat</noun>
+    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+      <word posp="noun" gloss="cat"/>
    </np>
-    <np number="sing" def="def" role="obj" tr="rheme">
-      <noun>mouse</noun>
+    <np number="sing" def="def" role="obj" tr="rheme" locus="number">
+      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
-    <vp tam="pres-cont" negation="POS" question="not.Q">
+    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
      <word posp="verb" gloss="chase"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number">
      <word posp="noun" gloss="cat"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
      <word posp="verb" gloss="chase"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM">
      <word posp="noun" gloss="cat"/>
    </np>
-    <np number="sing" def="def" role="obj" tr="rheme" locus="number">
+    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module addgender:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
      <word posp="verb" gloss="chase"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
-    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC">
+    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
-    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES">
+    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <word posp="verb" gloss="chase"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="chase"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
-      <word posp="verb" gloss="chase"/>
+      <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4">
-      <word posp="noun" gloss="mouse"/>
+      <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cat/noun/case/obligatory
Got NOM
About to call getSlotValue for mouse/noun/case/obligatory
Got ACC
<example id="tr_pres" translation="The cat is chasing the mouse.">
  <s>
    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PRES"/>
      <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4">
      <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="ACC"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="tr_pres" translation="The cat is chasing the mouse.">
-  <s>
-    <vp tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
-    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4">
    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="ACC"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="ACC"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="b u &#xA712; x a# &#xA712; n" slots="Cir Cfr">bu꜒xa#꜒n</word>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;" slots="Cmr Cfs">ɓy꜖d͡ʒ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /x/ > // + /k͡x/
/t͡s/ + /ɓ/ > // + /ɓ/
<example id="tr_pres" translation="The cat is chasing the mouse.">
  <flat>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="b u &#xA712; x a# &#xA712; n" slots="Cir Cfr">bu꜒xa#꜒n</word>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="b u &#xA712; x a# &#xA712; n">bu꜒xa#꜒n</word>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;" slots="Cmr Cfs">ɓy꜖d͡ʒ</thingy>
+    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;">ɓy꜖d͡ʒ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="tr_pres" translation="The cat is chasing the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="b u &#xA712; x a# &#xA712; n">bu꜒xa#꜒n</word>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ACC" attach="suffix" ph="&#x253; y &#xA716; d&#x361;&#x292;">ɓy꜖d͡ʒ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="verb" gloss="chase" tam="pres-cont" negation="POS" question="not.Q" ta="PRES" subj="3.sing.cl.4" obj="3.sing.cl.4">bu꜒xa#꜒n</word>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="NOM" gender="cl.4" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="ACC" gender="cl.4" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ACC">ɓy꜖d͡ʒ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;bu꜒xã꜒n&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;chase&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ma꜒ʃy꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;mouse&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ɓy꜖d͡ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ACC&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>bu꜒xã꜒n nũː꜒k͡xa꜒t͡ʃ ma꜒ʃy꜖ɓy꜖d͡ʒ</p>
+  <p>ب࣭خں࣭ن نوں࣭کخ࣭چ م࣭ش࣮ݐ࣮ج</p>
+  <il>
+    <w>
+      <o>bu꜒xã꜒n</o>
+      <g>chase</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>ma꜒ʃy꜖t͡s</o>
+      <g>mouse</g>
+    </w>
+    <w>
+      <o>-ɓy꜖d͡ʒ</o>
+      <g>ACC</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
    <vp tam="past-punct">
      <verb>catch</verb>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme">
      <noun>cat</noun>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme">
      <noun>mouse</noun>
    </np>
  </s>
</example>

cleanup:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
-    <vp tam="past-punct">
-      <verb>catch</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="catch"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme">
-      <noun>cat</noun>
+    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+      <word posp="noun" gloss="cat"/>
    </np>
-    <np number="sing" def="def" role="obj" tr="rheme">
-      <noun>mouse</noun>
+    <np number="sing" def="def" role="obj" tr="rheme" locus="number">
+      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number">
      <word posp="noun" gloss="cat"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG">
      <word posp="noun" gloss="cat"/>
    </np>
-    <np number="sing" def="def" role="obj" tr="rheme" locus="number">
+    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module addgender:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="catch"/>
    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG">
+    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
-    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM">
+    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <word posp="verb" gloss="catch"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="catch"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="cat"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="mouse"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="tr_past" translation="The cat caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="catch"/>
+      <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4">
-      <word posp="noun" gloss="mouse"/>
+      <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cat/noun/case/obligatory
Got ERG
About to call getSlotValue for mouse/noun/case/obligatory
Got NOM
<example id="tr_past" translation="The cat caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4">
      <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="tr_past" translation="The cat caught the mouse.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4">
    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="tr_past" translation="The cat caught the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /n/ > // + /n/
/t͡s/ + /x/ > // + /k͡x/
<example id="tr_past" translation="The cat caught the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="tr_past" translation="The cat caught the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" obj="3.sing.cl.4">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="cat" number="sing" def="def" role="subj" tr="theme" locus="number" case="ERG" gender="cl.4" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="mouse" number="sing" def="def" role="obj" tr="rheme" locus="number" case="NOM" gender="cl.4" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;we꜖b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;catch&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ma꜒ʃy꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;mouse&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l we꜖b ni꜖r nũː꜒ni꜖d͡ʑ ma꜒ʃy꜖k͡xa꜒t͡ʃ</p>
+  <p>خ࣮ل و࣮ب ن࣮ر نوں࣭ن࣮ࣆ م࣭ش࣮کخ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>we꜖b</o>
+      <g>catch</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>ma꜒ʃy꜖t͡s</o>
+      <g>mouse</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp tam="past-punct">
      <verb>kill</verb>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj">
      <noun>hunter</noun>
    </np>
    <np role="obj" tr="rheme">
      <conjp conj="and">
        <np def="def" number="plur">
          <noun>jaguar</noun>
        </np>
        <np def="def" number="plur">
          <noun>tiger</noun>
        </np>
        <np def="def" number="plur">
          <noun>lion</noun>
        </np>
      </conjp>
    </np>
  </s>
</example>

cleanup:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
-    <vp tam="past-punct">
-      <verb>kill</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="kill"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj">
-      <noun>hunter</noun>
+    <np def="def" number="sing" tr="theme" role="subj" locus="number">
+      <word posp="noun" gloss="hunter"/>
    </np>
    <np role="obj" tr="rheme">
      <conjp conj="and">
-        <np def="def" number="plur">
-          <noun>jaguar</noun>
+        <np def="def" number="plur" locus="number">
+          <word posp="noun" gloss="jaguar"/>
        </np>
-        <np def="def" number="plur">
-          <noun>tiger</noun>
+        <np def="def" number="plur" locus="number">
+          <word posp="noun" gloss="tiger"/>
        </np>
-        <np def="def" number="plur">
-          <noun>lion</noun>
+        <np def="def" number="plur" locus="number">
+          <word posp="noun" gloss="lion"/>
        </np>
      </conjp>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number">
      <word posp="noun" gloss="hunter"/>
    </np>
    <np role="obj" tr="rheme">
      <conjp conj="and">
        <np def="def" number="plur" locus="number">
          <word posp="noun" gloss="jaguar"/>
        </np>
        <np def="def" number="plur" locus="number">
          <word posp="noun" gloss="tiger"/>
        </np>
        <np def="def" number="plur" locus="number">
          <word posp="noun" gloss="lion"/>
        </np>
      </conjp>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number">
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG">
      <word posp="noun" gloss="hunter"/>
    </np>
-    <np role="obj" tr="rheme">
+    <np role="obj" tr="rheme" case="NOM">
      <conjp conj="and">
        <np def="def" number="plur" locus="number">
          <word posp="noun" gloss="jaguar"/>
        </np>
        <np def="def" number="plur" locus="number">
          <word posp="noun" gloss="tiger"/>
        </np>
        <np def="def" number="plur" locus="number">
          <word posp="noun" gloss="lion"/>
        </np>
      </conjp>
    </np>
  </s>
</example>

module addgender:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG">
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
-    <np role="obj" tr="rheme" case="NOM">
+    <np role="obj" tr="rheme" case="NOM" gender="cl.4">
      <conjp conj="and">
-        <np def="def" number="plur" locus="number">
+        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="jaguar"/>
        </np>
-        <np def="def" number="plur" locus="number">
+        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="tiger"/>
        </np>
-        <np def="def" number="plur" locus="number">
+        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="lion"/>
        </np>
      </conjp>
    </np>
  </s>
</example>

module propagatenumber:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
-    <np role="obj" tr="rheme" case="NOM" gender="cl.4">
+    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="plur">
      <conjp conj="and">
        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="jaguar"/>
        </np>
        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="tiger"/>
        </np>
        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="lion"/>
        </np>
      </conjp>
    </np>
  </s>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="plur">
      <conjp conj="and">
        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="jaguar"/>
        </np>
+        <word posp="conj" gloss="and"/>
        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="tiger"/>
        </np>
+        <word posp="conj" gloss="and"/>
        <np def="def" number="plur" locus="number" gender="cl.4">
          <word posp="noun" gloss="lion"/>
        </np>
      </conjp>
    </np>
  </s>
</example>

flattenconjp:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="plur">
-      <conjp conj="and">
-        <np def="def" number="plur" locus="number" gender="cl.4">
+      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="jaguar"/>
      </np>
      <word posp="conj" gloss="and"/>
-        <np def="def" number="plur" locus="number" gender="cl.4">
+      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="tiger"/>
      </np>
      <word posp="conj" gloss="and"/>
-        <np def="def" number="plur" locus="number" gender="cl.4">
+      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="lion"/>
      </np>
-      </conjp>
    </np>
  </s>
</example>

fixpronouns:

No change.

copyuptophrase:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">
      <word posp="verb" gloss="kill"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="plur">
      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="jaguar"/>
      </np>
      <word posp="conj" gloss="and"/>
      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="tiger"/>
      </np>
      <word posp="conj" gloss="and"/>
      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="lion"/>
      </np>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kill"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="plur">
      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="jaguar"/>
+        <thingy type="npnumber" function="enclitic" gloss="plur"/>
      </np>
      <word posp="conj" gloss="and"/>
      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="tiger"/>
+        <thingy type="npnumber" function="enclitic" gloss="plur"/>
      </np>
      <word posp="conj" gloss="and"/>
      <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
        <word posp="noun" gloss="lion"/>
+        <thingy type="npnumber" function="enclitic" gloss="plur"/>
      </np>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kill"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="plur">
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
      <word posp="noun" gloss="jaguar"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
    <word posp="conj" gloss="and"/>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
      <word posp="noun" gloss="tiger"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
    <word posp="conj" gloss="and"/>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
      <word posp="noun" gloss="lion"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
-    </np>
  </s>
</example>

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="kill"/>
+      <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
-      <word posp="noun" gloss="hunter"/>
+      <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
-      <word posp="noun" gloss="jaguar"/>
+      <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
    <word posp="conj" gloss="and"/>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
-      <word posp="noun" gloss="tiger"/>
+      <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
    <word posp="conj" gloss="and"/>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
-      <word posp="noun" gloss="lion"/>
+      <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for hunter/noun/case/obligatory
Got ERG
About to call getSlotValue for jaguar/noun/case/obligatory
Got NOM
About to call getSlotValue for tiger/noun/case/obligatory
Got NOM
About to call getSlotValue for lion/noun/case/obligatory
Got NOM
<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
      <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
    <word posp="conj" gloss="and"/>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
      <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
    <word posp="conj" gloss="and"/>
    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
      <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="plur"/>
    </np>
  </s>
</example>

flatten:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="plur"/>
-    </np>
    <word posp="conj" gloss="and"/>
-    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="plur"/>
-    </np>
    <word posp="conj" gloss="and"/>
-    <np def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM">
    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="plur"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="plur"/>
-    <word posp="conj" gloss="and"/>
-    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="plur"/>
-    <word posp="conj" gloss="and"/>
-    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="plur"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4" ph="d&#x361;&#x291; y &#xA712; b" slots="Cir Cfr">d͡ʑy꜒b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z" slots="Cir Cmr">ʃi꜒d͡ʑo꜖z</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
+    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;" slots="Cir Cfr">ɗi꜒ʒ</word>
+    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x257; y &#xA716; d&#x361;z u &#xA712; &#x283;" slots="Cir Cmr">ɗy꜖d͡zu꜒ʃ</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
+    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;" slots="Cir Cfr">ɗi꜒ʒ</word>
+    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="w y &#xA712; j u &#xA716; w" slots="Cir Cmr">wy꜒ju꜖w</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/ɗ/ + /n/ > // + /n/
/z/ + /x/ > // + /x/
/ʃ/ + /x/ > // + /x/
/w/ + /x/ > // + /ɡ/
<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4" ph="d&#x361;&#x291; y &#xA712; b" slots="Cir Cfr">d͡ʑy꜒b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;" slots="Cir Cmr">la꜖t͡sø꜖ɗ</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4" ph="d&#x361;&#x291; y &#xA712; b">d͡ʑy꜒b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z" slots="Cir Cmr">ʃi꜒d͡ʑo꜖z</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
-    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;" slots="Cir Cfr">ɗi꜒ʒ</word>
-    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x257; y &#xA716; d&#x361;z u &#xA712; &#x283;" slots="Cir Cmr">ɗy꜖d͡zu꜒ʃ</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
-    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;" slots="Cir Cfr">ɗi꜒ʒ</word>
-    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="w y &#xA712; j u &#xA716; w" slots="Cir Cmr">wy꜒ju꜖w</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l" slots="Cis Cfs">ʒy꜖l</thingy>
+    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716;" underlying="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z">ʃi꜒d͡ʑo꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
+    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;">ɗi꜒ʒ</word>
+    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x257; y &#xA716; d&#x361;z u &#xA712;" underlying="&#x257; y &#xA716; d&#x361;z u &#xA712; &#x283;">ɗy꜖d͡zu꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
+    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;">ɗi꜒ʒ</word>
+    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="w y &#xA712; j u &#xA716;" underlying="w y &#xA712; j u &#xA716; w">wy꜒ju꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
  </flat>
</example>

removetags:

<example id="conj1" translation="The hunter killed the jaguars, the tigers and the lions.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4" ph="d&#x361;&#x291; y &#xA712; b">d͡ʑy꜒b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="l a &#xA716; t&#x361;s &#xF8; &#xA716;" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716;" underlying="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z">ʃi꜒d͡ʑo꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
-    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;">ɗi꜒ʒ</word>
-    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="&#x257; y &#xA716; d&#x361;z u &#xA712;" underlying="&#x257; y &#xA716; d&#x361;z u &#xA712; &#x283;">ɗy꜖d͡zu꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
-    <word posp="conj" gloss="and" ph="&#x257; i &#xA712; &#x292;">ɗi꜒ʒ</word>
-    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" ph="w y &#xA712; j u &#xA716;" underlying="w y &#xA712; j u &#xA716; w">wy꜒ju꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="&#x261; a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="plur" ph="&#x292; y &#xA716; l">ʒy꜖l</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="kill" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.plur.cl.4">d͡ʑy꜒b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="hunter" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" underlying="l a &#xA716; t&#x361;s &#xF8; &#xA716; &#x257;">la꜖t͡sø꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="jaguar" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" underlying="&#x283; i &#xA712; d&#x361;&#x291; o &#xA716; z">ʃi꜒d͡ʑo꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur">ʒy꜖l</thingy>
+    <word posp="conj" gloss="and">ɗi꜒ʒ</word>
+    <word posp="noun" gloss="tiger" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" underlying="&#x257; y &#xA716; d&#x361;z u &#xA712; &#x283;">ɗy꜖d͡zu꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur">ʒy꜖l</thingy>
+    <word posp="conj" gloss="and">ɗi꜒ʒ</word>
+    <word posp="noun" gloss="lion" def="def" number="plur" locus="number" gender="cl.4" role="obj" tr="rheme" case="NOM" underlying="w y &#xA712; j u &#xA716; w">wy꜒ju꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ɡa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="plur">ʒy꜖l</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;kill&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;la꜖t͡sø꜖ɗ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;hunter&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʃi꜒d͡ʑo꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;jaguar&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʒy꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;plur&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗi꜒ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;and&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗy꜖d͡zu꜒ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;tiger&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʒy꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;plur&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗi꜒ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;and&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;wy꜒ju꜖w&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;lion&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ʒy꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;plur&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l d͡ʑy꜒b ni꜖r la꜖t͡sø꜖ni꜖d͡ʑ ʃi꜒d͡ʑo꜖xa꜒t͡ʃ ʒy꜖l ɗi꜒ʒ ɗy꜖d͡zu꜒xa꜒t͡ʃ ʒy꜖l ɗi꜒ʒ wy꜒ju꜖ɡa꜒t͡ʃ ʒy꜖l</p>
+  <p>خ࣮ل ࣆ࣭ب ن࣮ر ل࣮څ࣮ن࣮ࣆ ش࣭ࣆ࣮خ࣭چ ژ࣮ل ڏ࣭ژ ڏ࣮ځ࣭خ࣭چ ژ࣮ل ڏ࣭ژ و࣭ي࣮گ࣭چ ژ࣮ل</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒b</o>
+      <g>kill</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>la꜖t͡sø꜖ɗ</o>
+      <g>hunter</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>ʃi꜒d͡ʑo꜖z</o>
+      <g>jaguar</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>ʒy꜖l</o>
+      <g>plur</g>
+    </w>
+    <w>
+      <o>ɗi꜒ʒ</o>
+      <g>and</g>
+    </w>
+    <w>
+      <o>ɗy꜖d͡zu꜒ʃ</o>
+      <g>tiger</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>ʒy꜖l</o>
+      <g>plur</g>
+    </w>
+    <w>
+      <o>ɗi꜒ʒ</o>
+      <g>and</g>
+    </w>
+    <w>
+      <o>wy꜒ju꜖w</o>
+      <g>lion</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>ʒy꜖l</o>
+      <g>plur</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="relp1" translation="I patted the cat.">
  <s>
    <vp tam="past-punct">
      <verb>pat</verb>
    </vp>
    <np number="sing" def="neither" role="subj">
      <pron person="1excl" number="sing"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj">
      <noun>cat</noun>
    </np>
  </s>
</example>

cleanup:

<example id="relp1" translation="I patted the cat.">
  <s>
-    <vp tam="past-punct">
-      <verb>pat</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" role="subj" locus="number">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np def="def" number="sing" tr="rheme" role="obj">
-      <noun>cat</noun>
+    <np def="def" number="sing" tr="rheme" role="obj" locus="number">
+      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="relp1" translation="I patted the cat.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

No change.

tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

No change.

module casemarking:

<example id="relp1" translation="I patted the cat.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np def="def" number="sing" tr="rheme" role="obj" locus="number">
+    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module addgender:

<example id="relp1" translation="I patted the cat.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM">
+    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="relp1" translation="I patted the cat.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

copyuptophrase:

<example id="relp1" translation="I patted the cat.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="relp1" translation="I patted the cat.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="relp1" translation="I patted the cat.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="pat"/>
+      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
-      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cat/noun/case/obligatory
Got NOM
<example id="relp1" translation="I patted the cat.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
      <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="relp1" translation="I patted the cat.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    </np>
-    <np def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="relp1" translation="I patted the cat.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /x/ > // + /k͡x/
<example id="relp1" translation="I patted the cat.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="relp1" translation="I patted the cat.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG">k͡xø꜒t</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" tr="rheme" role="obj" locus="number" case="NOM" gender="cl.4" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋy꜖ja꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;pat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l ŋy꜖ja꜒t͡ʃ ni꜖r k͡xø꜒t nũː꜒k͡xa꜒t͡ʃ</p>
+  <p>خ࣮ل ڭ࣮ي࣭چ ن࣮ر کخ࣭ت نوں࣭کخ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ŋy꜖ja꜒t͡ʃ</o>
+      <g>pat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp tam="past-punct">
      <verb>pat</verb>
    </vp>
    <np number="sing" def="neither" role="subj">
      <pron person="1excl" number="sing"/>
    </np>
    <np role="obj">
      <relp>
        <vp tam="past-punct">
          <verb>catch</verb>
        </vp>
        <np def="def" number="sing" role="subj" head="this">
          <noun>cat</noun>
        </np>
        <np def="def" number="sing" role="obj">
          <noun>mouse</noun>
        </np>
      </relp>
    </np>
  </s>
</example>

cleanup:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
-    <vp tam="past-punct">
-      <verb>pat</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" role="subj" locus="number">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <relp>
-        <vp tam="past-punct">
-          <verb>catch</verb>
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="subj" head="this">
-          <noun>cat</noun>
+        <np def="def" number="sing" role="subj" head="this" locus="number">
+          <word posp="noun" gloss="cat"/>
        </np>
-        <np def="def" number="sing" role="obj">
-          <noun>mouse</noun>
+        <np def="def" number="sing" role="obj" locus="number">
+          <word posp="noun" gloss="mouse"/>
        </np>
      </relp>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <relp>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="subj" head="this" locus="number">
          <word posp="noun" gloss="cat"/>
        </np>
        <np def="def" number="sing" role="obj" locus="number">
          <word posp="noun" gloss="mouse"/>
        </np>
      </relp>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
-      <relp>
+      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="subj" head="this" locus="number">
-          <word posp="noun" gloss="cat"/>
-        </np>
        <np def="def" number="sing" role="obj" locus="number">
          <word posp="noun" gloss="mouse"/>
        </np>
-      </relp>
+      </subs>
+      <np def="def" number="sing" role="subj" locus="number">
+        <word posp="noun" gloss="cat"/>
      </np>
+    </np>
  </s>
</example>

module sentenceconnectors:

No change.

module complementise:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <subs>
+        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number">
          <word posp="noun" gloss="mouse"/>
        </np>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>
tva1
tva2
tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <subs>
-        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number">
          <word posp="noun" gloss="mouse"/>
        </np>
+        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module casemarking:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj">
+    <np role="obj" case="NOM">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="obj" locus="number">
+        <np def="def" number="sing" role="obj" locus="number" case="NOM">
          <word posp="noun" gloss="mouse"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module addgender:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj" case="NOM">
+    <np role="obj" case="NOM" gender="cl.4">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="obj" locus="number" case="NOM">
+        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
          <word posp="noun" gloss="mouse"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
-      <np def="def" number="sing" role="subj" locus="number">
+      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module propagatenumber:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj" case="NOM" gender="cl.4">
+    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
          <word posp="noun" gloss="mouse"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
          <word posp="noun" gloss="mouse"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

copyuptophrase:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
          <word posp="noun" gloss="mouse"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
+          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="catch"/>
+          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
          <word posp="noun" gloss="mouse"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
+        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
-    <np role="obj" case="NOM" gender="cl.4" number="sing">
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
        <word posp="verb" gloss="catch"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
        <word posp="noun" gloss="mouse"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
-      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
+    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
      <word posp="noun" gloss="cat"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    </np>
  </s>
</example>

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="pat"/>
+      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
-      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
-        <word posp="verb" gloss="catch"/>
+        <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
-        <word posp="noun" gloss="mouse"/>
+        <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for mouse/noun/case/obligatory
Got NOM
About to call getSlotValue for cat/noun/case/obligatory
Got NOM
<example id="relp2" translation="I patted the cat that caught the mouse.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
        <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
        <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4"/>
+        <thingy type="nouncase" function="suffix" gloss="NOM"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
      <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="relp2" translation="I patted the cat that caught the mouse.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    </np>
-    <subs>
-      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-      </vp>
-      <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4">
    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-      </np>
    <word gloss="COMP" posp="pp"/>
-    </subs>
-    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMP" posp="pp"/>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/t͡s/ + /x/ > // + /k͡x/
/t͡s/ + /x/ > // + /k͡x/
<example id="relp2" translation="I patted the cat that caught the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="relp2" translation="I patted the cat that caught the mouse.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.4" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋy꜖ja꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;pat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;we꜖b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;catch&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ma꜒ʃy꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;mouse&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l ŋy꜖ja꜒t͡ʃ ni꜖r k͡xø꜒t xi꜖l we꜖b ni꜖r ma꜒ʃy꜖k͡xa꜒t͡ʃ d͡ʑy꜒ti꜖k nũː꜒k͡xa꜒t͡ʃ</p>
+  <p>خ࣮ل ڭ࣮ي࣭چ ن࣮ر کخ࣭ت خ࣮ل و࣮ب ن࣮ر م࣭ش࣮کخ࣭چ ࣆ࣭ت࣮ك نوں࣭کخ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ŋy꜖ja꜒t͡ʃ</o>
+      <g>pat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>we꜖b</o>
+      <g>catch</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>ma꜒ʃy꜖t͡s</o>
+      <g>mouse</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp tam="past-punct">
      <verb>pat</verb>
    </vp>
    <np number="sing" def="neither" role="subj">
      <pron person="1excl" number="sing"/>
    </np>
    <np role="obj">
      <relp>
        <vp tam="past-punct">
          <verb>catch</verb>
        </vp>
        <np def="def" number="sing" role="subj" head="this">
          <noun>cat</noun>
        </np>
        <np role="obj">
          <relp>
            <vp tam="past-punct">
              <verb>eat</verb>
            </vp>
            <np def="def" number="sing" role="subj" head="this">
              <noun>mouse</noun>
            </np>
            <np def="def" number="sing" role="obj">
              <noun>cheese</noun>
            </np>
          </relp>
        </np>
      </relp>
    </np>
  </s>
</example>

cleanup:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
-    <vp tam="past-punct">
-      <verb>pat</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" role="subj" locus="number">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <relp>
-        <vp tam="past-punct">
-          <verb>catch</verb>
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="subj" head="this">
-          <noun>cat</noun>
+        <np def="def" number="sing" role="subj" head="this" locus="number">
+          <word posp="noun" gloss="cat"/>
        </np>
        <np role="obj">
          <relp>
-            <vp tam="past-punct">
-              <verb>eat</verb>
+            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+              <word posp="verb" gloss="eat"/>
            </vp>
-            <np def="def" number="sing" role="subj" head="this">
-              <noun>mouse</noun>
+            <np def="def" number="sing" role="subj" head="this" locus="number">
+              <word posp="noun" gloss="mouse"/>
            </np>
-            <np def="def" number="sing" role="obj">
-              <noun>cheese</noun>
+            <np def="def" number="sing" role="obj" locus="number">
+              <word posp="noun" gloss="cheese"/>
            </np>
          </relp>
        </np>
      </relp>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <relp>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="subj" head="this" locus="number">
          <word posp="noun" gloss="cat"/>
        </np>
        <np role="obj">
          <relp>
-            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="subj" head="this" locus="number">
              <word posp="noun" gloss="mouse"/>
            </np>
            <np def="def" number="sing" role="obj" locus="number">
              <word posp="noun" gloss="cheese"/>
            </np>
          </relp>
        </np>
      </relp>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
-      <relp>
+      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="subj" head="this" locus="number">
-          <word posp="noun" gloss="cat"/>
-        </np>
        <np role="obj">
-          <relp>
+          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np def="def" number="sing" role="subj" head="this" locus="number">
-              <word posp="noun" gloss="mouse"/>
-            </np>
            <np def="def" number="sing" role="obj" locus="number">
              <word posp="noun" gloss="cheese"/>
            </np>
-          </relp>
+          </subs>
+          <np def="def" number="sing" role="subj" locus="number">
+            <word posp="noun" gloss="mouse"/>
          </np>
-      </relp>
        </np>
+      </subs>
+      <np def="def" number="sing" role="subj" locus="number">
+        <word posp="noun" gloss="cat"/>
+      </np>
+    </np>
  </s>
</example>

module sentenceconnectors:

No change.

module complementise:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <subs>
+        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj">
          <subs>
+            <word gloss="COMP" posp="pp"/>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="obj" locus="number">
              <word posp="noun" gloss="cheese"/>
            </np>
          </subs>
          <np def="def" number="sing" role="subj" locus="number">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>
tva1
tva2
tva1
tva2
tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <subs>
-        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj">
          <subs>
-            <word gloss="COMP" posp="pp"/>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="obj" locus="number">
              <word posp="noun" gloss="cheese"/>
            </np>
+            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
+        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module casemarking:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj">
+    <np role="obj" case="NOM">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np role="obj">
+        <np role="obj" case="NOM">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np def="def" number="sing" role="obj" locus="number">
+            <np def="def" number="sing" role="obj" locus="number" case="NOM">
              <word posp="noun" gloss="cheese"/>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module addgender:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj" case="NOM">
+    <np role="obj" case="NOM" gender="cl.4">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np role="obj" case="NOM">
+        <np role="obj" case="NOM" gender="cl.4">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np def="def" number="sing" role="obj" locus="number" case="NOM">
+            <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
              <word posp="noun" gloss="cheese"/>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
-          <np def="def" number="sing" role="subj" locus="number">
+          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
-      <np def="def" number="sing" role="subj" locus="number">
+      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module propagatenumber:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj" case="NOM" gender="cl.4">
+    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np role="obj" case="NOM" gender="cl.4">
+        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
              <word posp="noun" gloss="cheese"/>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
              <word posp="noun" gloss="cheese"/>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

copyuptophrase:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
-            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
              <word posp="noun" gloss="cheese"/>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
+          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="catch"/>
+          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">
+              <thingy type="vpta" function="proclitic" gloss="PAST"/>
              <word posp="verb" gloss="eat"/>
+              <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
            </vp>
            <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
              <word posp="noun" gloss="cheese"/>
+              <thingy type="npnumber" function="enclitic" gloss="sing"/>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
+            <thingy type="npnumber" function="enclitic" gloss="sing"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
+        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
-    <np role="obj" case="NOM" gender="cl.4" number="sing">
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
        <word posp="verb" gloss="catch"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
-        <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="eat"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
          <word posp="noun" gloss="cheese"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
-          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
+      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
        <word posp="noun" gloss="mouse"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
-        </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
-      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
+    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
      <word posp="noun" gloss="cat"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    </np>
  </s>
</example>

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="pat"/>
+      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
-      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
-        <word posp="verb" gloss="catch"/>
+        <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
-          <word posp="verb" gloss="eat"/>
+          <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
-          <word posp="noun" gloss="cheese"/>
+          <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
-        <word posp="noun" gloss="mouse"/>
+        <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cheese/noun/case/obligatory
Got NOM
About to call getSlotValue for mouse/noun/case/obligatory
Got NOM
About to call getSlotValue for cat/noun/case/obligatory
Got NOM
<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
        <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
          <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
+          <thingy type="nouncase" function="suffix" gloss="NOM"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
        <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
+        <thingy type="nouncase" function="suffix" gloss="NOM"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
      <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    </np>
-    <subs>
-      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-      </vp>
-      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-        </vp>
-        <np def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-        </np>
    <word gloss="COMP" posp="pp"/>
-      </subs>
-      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-      </np>
    <word gloss="COMP" posp="pp"/>
-    </subs>
-    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMP" posp="pp"/>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMP" posp="pp"/>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3" ph="&#x257; ai &#xA712; &#x292;" slots="Cir Cfr">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="d i &#xA712; j a# &#xA712; z" slots="Cir Cmr">di꜒ja#꜒z</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/z/ + /x/ > // + /x/
/t͡s/ + /x/ > // + /k͡x/
/t͡s/ + /x/ > // + /k͡x/
<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3" ph="&#x257; ai &#xA712; &#x292;" slots="Cir Cfr">ɗai꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="d i &#xA712; j a# &#xA712; z" slots="Cir Cmr">di꜒ja#꜒z</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3" ph="&#x257; ai &#xA712; &#x292;">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="d i &#xA712; j a# &#xA712;" underlying="d i &#xA712; j a# &#xA712; z">di꜒ja#꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="relp3" translation="I patted the cat that caught the mouse that ate the cheese.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3" ph="&#x257; ai &#xA712; &#x292;">ɗai꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="d i &#xA712; j a# &#xA712;" underlying="d i &#xA712; j a# &#xA712; z">di꜒ja#꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.3">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" underlying="d i &#xA712; j a# &#xA712; z">di꜒ja#꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋy꜖ja꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;pat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;we꜖b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;catch&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗai꜒ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;eat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;di꜒jã꜒z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cheese&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ma꜒ʃy꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;mouse&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l ŋy꜖ja꜒t͡ʃ ni꜖r k͡xø꜒t xi꜖l we꜖b ni꜖r xi꜖l ɗai꜒ʒ ni꜖r di꜒jã꜒xa꜒t͡ʃ d͡ʑy꜒ti꜖k ma꜒ʃy꜖k͡xa꜒t͡ʃ d͡ʑy꜒ti꜖k nũː꜒k͡xa꜒t͡ʃ</p>
+  <p>خ࣮ل ڭ࣮ي࣭چ ن࣮ر کخ࣭ت خ࣮ل و࣮ب ن࣮ر خ࣮ل ڏي࣭ژ ن࣮ر د࣭يں࣭خ࣭چ ࣆ࣭ت࣮ك م࣭ش࣮کخ࣭چ ࣆ࣭ت࣮ك نوں࣭کخ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ŋy꜖ja꜒t͡ʃ</o>
+      <g>pat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>we꜖b</o>
+      <g>catch</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ɗai꜒ʒ</o>
+      <g>eat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>di꜒jã꜒z</o>
+      <g>cheese</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>ma꜒ʃy꜖t͡s</o>
+      <g>mouse</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp tam="past-punct">
      <verb>pat</verb>
    </vp>
    <np number="sing" def="neither" role="subj">
      <pron person="1excl" number="sing"/>
    </np>
    <np role="obj">
      <relp>
        <vp tam="past-punct">
          <verb>catch</verb>
        </vp>
        <np def="def" number="sing" role="subj" head="this">
          <noun>cat</noun>
        </np>
        <np role="obj">
          <relp>
            <vp tam="past-punct">
              <verb>eat</verb>
            </vp>
            <np def="def" number="sing" role="subj" head="this">
              <noun>mouse</noun>
            </np>
            <np role="obj">
              <relp>
                <vp tam="past-punct">
                  <verb>buy</verb>
                </vp>
                <np number="sing" def="neither" role="subj">
                  <pron person="1excl" number="sing"/>
                </np>
                <np def="def" number="sing" role="obj" head="this">
                  <noun>cheese</noun>
                </np>
              </relp>
            </np>
          </relp>
        </np>
      </relp>
    </np>
  </s>
</example>

cleanup:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
-    <vp tam="past-punct">
-      <verb>pat</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj">
-      <pron person="1excl" number="sing"/>
+    <np number="sing" def="neither" role="subj" locus="number">
+      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <relp>
-        <vp tam="past-punct">
-          <verb>catch</verb>
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="subj" head="this">
-          <noun>cat</noun>
+        <np def="def" number="sing" role="subj" head="this" locus="number">
+          <word posp="noun" gloss="cat"/>
        </np>
        <np role="obj">
          <relp>
-            <vp tam="past-punct">
-              <verb>eat</verb>
+            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+              <word posp="verb" gloss="eat"/>
            </vp>
-            <np def="def" number="sing" role="subj" head="this">
-              <noun>mouse</noun>
+            <np def="def" number="sing" role="subj" head="this" locus="number">
+              <word posp="noun" gloss="mouse"/>
            </np>
            <np role="obj">
              <relp>
-                <vp tam="past-punct">
-                  <verb>buy</verb>
+                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+                  <word posp="verb" gloss="buy"/>
                </vp>
-                <np number="sing" def="neither" role="subj">
-                  <pron person="1excl" number="sing"/>
+                <np number="sing" def="neither" role="subj" locus="number">
+                  <word person="1excl" number="sing" posp="pron"/>
                </np>
-                <np def="def" number="sing" role="obj" head="this">
-                  <noun>cheese</noun>
+                <np def="def" number="sing" role="obj" head="this" locus="number">
+                  <word posp="noun" gloss="cheese"/>
                </np>
              </relp>
            </np>
          </relp>
        </np>
      </relp>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <relp>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np def="def" number="sing" role="subj" head="this" locus="number">
          <word posp="noun" gloss="cat"/>
        </np>
        <np role="obj">
          <relp>
-            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np def="def" number="sing" role="subj" head="this" locus="number">
              <word posp="noun" gloss="mouse"/>
            </np>
            <np role="obj">
              <relp>
-                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
                <np def="def" number="sing" role="obj" head="this" locus="number">
                  <word posp="noun" gloss="cheese"/>
                </np>
              </relp>
            </np>
          </relp>
        </np>
      </relp>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
-      <relp>
+      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np def="def" number="sing" role="subj" head="this" locus="number">
-          <word posp="noun" gloss="cat"/>
-        </np>
        <np role="obj">
-          <relp>
+          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np def="def" number="sing" role="subj" head="this" locus="number">
-              <word posp="noun" gloss="mouse"/>
-            </np>
            <np role="obj">
-              <relp>
+              <subs>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
-                <np def="def" number="sing" role="obj" head="this" locus="number">
+              </subs>
+              <np def="def" number="sing" role="obj" locus="number">
                <word posp="noun" gloss="cheese"/>
              </np>
-              </relp>
            </np>
-          </relp>
+          </subs>
+          <np def="def" number="sing" role="subj" locus="number">
+            <word posp="noun" gloss="mouse"/>
          </np>
-      </relp>
        </np>
+      </subs>
+      <np def="def" number="sing" role="subj" locus="number">
+        <word posp="noun" gloss="cat"/>
+      </np>
+    </np>
  </s>
</example>

module sentenceconnectors:

No change.

module complementise:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <subs>
+        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj">
          <subs>
+            <word gloss="COMP" posp="pp"/>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np role="obj">
              <subs>
+                <word gloss="COMP" posp="pp"/>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
              </subs>
              <np def="def" number="sing" role="obj" locus="number">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
          </subs>
          <np def="def" number="sing" role="subj" locus="number">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>
tva1
tva2
tva1
tva2
tva1
tva2
tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
    <np role="obj">
      <subs>
-        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj">
          <subs>
-            <word gloss="COMP" posp="pp"/>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np role="obj">
              <subs>
-                <word gloss="COMP" posp="pp"/>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
+                <word gloss="COMP" posp="pp"/>
              </subs>
              <np def="def" number="sing" role="obj" locus="number">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
+            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
+        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module casemarking:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj">
+    <np role="obj" case="NOM">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np role="obj">
+        <np role="obj" case="NOM">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np role="obj">
+            <np role="obj" case="NOM">
              <subs>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
-                <np number="sing" def="neither" role="subj" locus="number">
+                <np number="sing" def="neither" role="subj" locus="number" case="ERG">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
                <word gloss="COMP" posp="pp"/>
              </subs>
              <np def="def" number="sing" role="obj" locus="number">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module addgender:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj" case="NOM">
+    <np role="obj" case="NOM" gender="cl.4">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np role="obj" case="NOM">
+        <np role="obj" case="NOM" gender="cl.4">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np role="obj" case="NOM">
+            <np role="obj" case="NOM" gender="cl.3">
              <subs>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number" case="ERG">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
                <word gloss="COMP" posp="pp"/>
              </subs>
-              <np def="def" number="sing" role="obj" locus="number">
+              <np def="def" number="sing" role="obj" locus="number" gender="cl.3">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
-          <np def="def" number="sing" role="subj" locus="number">
+          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
-      <np def="def" number="sing" role="subj" locus="number">
+      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module propagatenumber:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
      <word person="1excl" number="sing" posp="pron"/>
    </np>
-    <np role="obj" case="NOM" gender="cl.4">
+    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
-        <np role="obj" case="NOM" gender="cl.4">
+        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np role="obj" case="NOM" gender="cl.3">
+            <np role="obj" case="NOM" gender="cl.3" number="sing">
              <subs>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number" case="ERG">
                  <word person="1excl" number="sing" posp="pron"/>
                </np>
                <word gloss="COMP" posp="pp"/>
              </subs>
              <np def="def" number="sing" role="obj" locus="number" gender="cl.3">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="pat"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
-      <word person="1excl" number="sing" posp="pron"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
              <word posp="verb" gloss="eat"/>
            </vp>
            <np role="obj" case="NOM" gender="cl.3" number="sing">
              <subs>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
                  <word posp="verb" gloss="buy"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number" case="ERG">
-                  <word person="1excl" number="sing" posp="pron"/>
+                  <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
                </np>
                <word gloss="COMP" posp="pp"/>
              </subs>
              <np def="def" number="sing" role="obj" locus="number" gender="cl.3">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

copyuptophrase:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <word posp="verb" gloss="pat"/>
    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG">
+    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
          <word posp="verb" gloss="catch"/>
        </vp>
        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
-            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">
              <word posp="verb" gloss="eat"/>
            </vp>
-            <np role="obj" case="NOM" gender="cl.3" number="sing">
+            <np role="obj" case="NOM" gender="cl.3" number="sing" person="1excl">
              <subs>
-                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">
                  <word posp="verb" gloss="buy"/>
                </vp>
-                <np number="sing" def="neither" role="subj" locus="number" case="ERG">
+                <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
                  <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
                </np>
                <word gloss="COMP" posp="pp"/>
              </subs>
              <np def="def" number="sing" role="obj" locus="number" gender="cl.3">
                <word posp="noun" gloss="cheese"/>
              </np>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
      </np>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
    <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
+          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="catch"/>
+          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np role="obj" case="NOM" gender="cl.4" number="sing">
          <subs>
            <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">
+              <thingy type="vpta" function="proclitic" gloss="PAST"/>
              <word posp="verb" gloss="eat"/>
+              <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
            </vp>
            <np role="obj" case="NOM" gender="cl.3" number="sing" person="1excl">
              <subs>
                <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">
+                  <thingy type="vpta" function="proclitic" gloss="PAST"/>
                  <word posp="verb" gloss="buy"/>
+                  <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
                </vp>
                <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
                  <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
                </np>
                <word gloss="COMP" posp="pp"/>
              </subs>
              <np def="def" number="sing" role="obj" locus="number" gender="cl.3">
                <word posp="noun" gloss="cheese"/>
+                <thingy type="npnumber" function="enclitic" gloss="sing"/>
              </np>
            </np>
            <word gloss="COMP" posp="pp"/>
          </subs>
          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
            <word posp="noun" gloss="mouse"/>
+            <thingy type="npnumber" function="enclitic" gloss="sing"/>
          </np>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
        <word posp="noun" gloss="cat"/>
+        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
    </np>
-    <np role="obj" case="NOM" gender="cl.4" number="sing">
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
        <word posp="verb" gloss="catch"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
-        <np role="obj" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="eat"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
-            <np role="obj" case="NOM" gender="cl.3" number="sing" person="1excl">
        <subs>
          <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">
            <thingy type="vpta" function="proclitic" gloss="PAST"/>
            <word posp="verb" gloss="buy"/>
            <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
          </vp>
          <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
            <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
          </np>
          <word gloss="COMP" posp="pp"/>
        </subs>
-              <np def="def" number="sing" role="obj" locus="number" gender="cl.3">
+        <np def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl">
          <word posp="noun" gloss="cheese"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
-            </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
-          <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
+      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
        <word posp="noun" gloss="mouse"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
-        </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
-      <np def="def" number="sing" role="subj" locus="number" gender="cl.4">
+    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
      <word posp="noun" gloss="cat"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
-    </np>
  </s>
</example>

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="pat"/>
+      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
-      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
-        <word posp="verb" gloss="catch"/>
+        <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
-          <word posp="verb" gloss="eat"/>
+          <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <subs>
          <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">
            <thingy type="vpta" function="proclitic" gloss="PAST"/>
-            <word posp="verb" gloss="buy"/>
+            <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing"/>
            <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
          </vp>
          <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
-            <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+            <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
          </np>
          <word gloss="COMP" posp="pp"/>
        </subs>
        <np def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl">
-          <word posp="noun" gloss="cheese"/>
+          <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
-        <word posp="noun" gloss="mouse"/>
+        <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
-      <word posp="noun" gloss="cat"/>
+      <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for cheese/noun/case/obligatory
Got NOM
About to call getSlotValue for mouse/noun/case/obligatory
Got NOM
About to call getSlotValue for cat/noun/case/obligatory
Got NOM
<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
      <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
    </np>
    <subs>
      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
        <thingy type="vpta" function="proclitic" gloss="PAST"/>
        <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
        <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
      </vp>
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <subs>
          <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">
            <thingy type="vpta" function="proclitic" gloss="PAST"/>
            <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing"/>
            <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
          </vp>
          <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
            <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
          </np>
          <word gloss="COMP" posp="pp"/>
        </subs>
        <np def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl">
          <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl"/>
+          <thingy type="nouncase" function="suffix" gloss="NOM"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
        <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
+        <thingy type="nouncase" function="suffix" gloss="NOM"/>
        <thingy type="npnumber" function="enclitic" gloss="sing"/>
      </np>
      <word gloss="COMP" posp="pp"/>
    </subs>
    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
      <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
+      <thingy type="nouncase" function="suffix" gloss="NOM"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    </np>
-    <subs>
-      <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-      </vp>
-      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-        </vp>
-        <subs>
-          <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-          </vp>
-          <np number="sing" def="neither" role="subj" locus="number" case="ERG" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-          </np>
    <word gloss="COMP" posp="pp"/>
-        </subs>
-        <np def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl">
    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-        </np>
    <word gloss="COMP" posp="pp"/>
-      </subs>
-      <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-      </np>
    <word gloss="COMP" posp="pp"/>
-    </subs>
-    <np def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM">
    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG"/>
-    <word gloss="COMP" posp="pp"/>
-    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMP" posp="pp"/>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMP" posp="pp"/>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing" ph="&#x257; ai &#xA712; &#x292;" slots="Cir Cfr">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" ph="d u &#xA712; m" slots="Cir Cfr">du꜒m</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl" ph="d i &#xA712; j a# &#xA712; z" slots="Cir Cmr">di꜒ja#꜒z</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/z/ + /x/ > // + /x/
/t͡s/ + /x/ > // + /k͡x/
/t͡s/ + /x/ > // + /k͡x/
<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;" slots="Cir Cfr">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b" slots="Cir Cfr">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing" ph="&#x257; ai &#xA712; &#x292;" slots="Cir Cfr">ɗai꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" ph="d u &#xA712; m" slots="Cir Cfr">du꜒m</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl" ph="d i &#xA712; j a# &#xA712; z" slots="Cir Cmr">di꜒ja#꜒z</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing" ph="&#x257; ai &#xA712; &#x292;">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" ph="d u &#xA712; m">du꜒m</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl" ph="d i &#xA712; j a# &#xA712;" underlying="d i &#xA712; j a# &#xA712; z">di꜒ja#꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716; t&#x361;s" slots="Cir Cmr">ma꜒ʃy꜖t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712; t&#x361;s" slots="Cir Cmr">nu#ː꜒t͡s</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="relp4" translation="I patted the cat that caught the mouse that ate the cheese that I bought.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4" ph="&#x14B; y &#xA716; j a &#xA712; t&#x361;&#x283;">ŋy꜖ja꜒t͡ʃ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4" ph="w e &#xA716; b">we꜖b</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing" ph="&#x257; ai &#xA712; &#x292;">ɗai꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" ph="d u &#xA712; m">du꜒m</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl" ph="d i &#xA712; j a# &#xA712;" underlying="d i &#xA712; j a# &#xA712; z">di꜒ja#꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;">xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="m a &#xA712; &#x283; y &#xA716;" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" ph="n u#&#x2D0; &#xA712;" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k&#x361;x a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="pat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing" obj="3.sing.cl.4">ŋy꜖ja꜒t͡ʃ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG">k͡xø꜒t</word>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="catch" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="3.sing.cl.4">we꜖b</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="eat" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" obj="1excl.sing">ɗai꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="buy" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="1excl.sing">du꜒m</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="ERG">k͡xø꜒t</word>
+    <word gloss="COMP" posp="pp">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cheese" def="def" number="sing" role="obj" locus="number" gender="cl.3" case="NOM" person="1excl" underlying="d i &#xA712; j a# &#xA712; z">di꜒ja#꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM">xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="mouse" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" underlying="m a &#xA712; &#x283; y &#xA716; t&#x361;s">ma꜒ʃy꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
+    <word gloss="COMP" posp="pp">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="cat" def="def" number="sing" role="obj" locus="number" gender="cl.4" case="NOM" underlying="n u#&#x2D0; &#xA712; t&#x361;s">nu#ː꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">k͡xa꜒t͡ʃ</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ŋy꜖ja꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;pat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;we꜖b&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;catch&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɗai꜒ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;eat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;du꜒m&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;buy&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;di꜒jã꜒z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cheese&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ma꜒ʃy꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;mouse&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;nũː꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;cat&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l ŋy꜖ja꜒t͡ʃ ni꜖r k͡xø꜒t xi꜖l we꜖b ni꜖r xi꜖l ɗai꜒ʒ ni꜖r xi꜖l du꜒m ni꜖r k͡xø꜒t d͡ʑy꜒ti꜖k di꜒jã꜒xa꜒t͡ʃ d͡ʑy꜒ti꜖k ma꜒ʃy꜖k͡xa꜒t͡ʃ d͡ʑy꜒ti꜖k nũː꜒k͡xa꜒t͡ʃ</p>
+  <p>خ࣮ل ڭ࣮ي࣭چ ن࣮ر کخ࣭ت خ࣮ل و࣮ب ن࣮ر خ࣮ل ڏي࣭ژ ن࣮ر خ࣮ل د࣭م ن࣮ر کخ࣭ت ࣆ࣭ت࣮ك د࣭يں࣭خ࣭چ ࣆ࣭ت࣮ك م࣭ش࣮کخ࣭چ ࣆ࣭ت࣮ك نوں࣭کخ࣭چ</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ŋy꜖ja꜒t͡ʃ</o>
+      <g>pat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>we꜖b</o>
+      <g>catch</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>ɗai꜒ʒ</o>
+      <g>eat</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>du꜒m</o>
+      <g>buy</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>di꜒jã꜒z</o>
+      <g>cheese</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>ma꜒ʃy꜖t͡s</o>
+      <g>mouse</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>nũː꜒t͡s</o>
+      <g>cat</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp tam="past-punct">
      <verb>surprise</verb>
    </vp>
    <np role="subj">
      <subs>
        <vp tam="past-punct">
          <verb>give</verb>
        </vp>
        <np number="sing" def="def" head="this" role="subj">
          <noun>boy</noun>
        </np>
        <np number="sing" def="indef" role="obj">
          <noun>apple</noun>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme">
          <noun>girl</noun>
        </np>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj">
      <noun>teacher</noun>
    </np>
  </s>
</example>

cleanup:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
-    <vp tam="past-punct">
-      <verb>surprise</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="surprise"/>
    </vp>
    <np role="subj">
      <subs>
-        <vp tam="past-punct">
-          <verb>give</verb>
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+          <word posp="verb" gloss="give"/>
        </vp>
-        <np number="sing" def="def" head="this" role="subj">
-          <noun>boy</noun>
+        <np number="sing" def="def" head="this" role="subj" locus="number">
+          <word posp="noun" gloss="boy"/>
        </np>
-        <np number="sing" def="indef" role="obj">
-          <noun>apple</noun>
+        <np number="sing" def="indef" role="obj" locus="number">
+          <word posp="noun" gloss="apple"/>
        </np>
-        <np number="sing" def="def" role="indobj" tr="rheme">
-          <noun>girl</noun>
+        <np number="sing" def="def" role="indobj" tr="rheme" locus="number">
+          <word posp="noun" gloss="girl"/>
        </np>
      </subs>
    </np>
-    <np number="sing" def="def" role="indobj">
-      <noun>teacher</noun>
+    <np number="sing" def="def" role="indobj" locus="number">
+      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

module articles:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
      <word posp="verb" gloss="surprise"/>
    </vp>
    <np role="subj">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
          <word posp="verb" gloss="give"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number">
          <word posp="noun" gloss="boy"/>
        </np>
-        <np number="sing" def="indef" role="obj" locus="number">
+        <np number="sing" role="obj" locus="number">
          <word posp="noun" gloss="apple"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number">
          <word posp="noun" gloss="girl"/>
        </np>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

module nonpastonly:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="surprise"/>
    </vp>
    <np role="subj">
      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="give"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number">
          <word posp="noun" gloss="boy"/>
        </np>
        <np number="sing" role="obj" locus="number">
          <word posp="noun" gloss="apple"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number">
          <word posp="noun" gloss="girl"/>
        </np>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="surprise"/>
    </vp>
    <np role="subj">
      <subs>
+        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="give"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number">
          <word posp="noun" gloss="boy"/>
        </np>
        <np number="sing" role="obj" locus="number">
          <word posp="noun" gloss="apple"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number">
          <word posp="noun" gloss="girl"/>
        </np>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>
tva1
tva2
tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="surprise"/>
    </vp>
    <np role="subj">
      <subs>
-        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="give"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number">
          <word posp="noun" gloss="boy"/>
        </np>
        <np number="sing" role="obj" locus="number">
          <word posp="noun" gloss="apple"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number">
          <word posp="noun" gloss="girl"/>
        </np>
+        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

module casemarking:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="surprise"/>
    </vp>
-    <np role="subj">
+    <np role="subj" case="ERG">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="give"/>
        </vp>
-        <np number="sing" def="def" head="this" role="subj" locus="number">
+        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG">
          <word posp="noun" gloss="boy"/>
        </np>
-        <np number="sing" role="obj" locus="number">
+        <np number="sing" role="obj" locus="number" case="NOM">
          <word posp="noun" gloss="apple"/>
        </np>
-        <np number="sing" def="def" role="indobj" tr="rheme" locus="number">
+        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT">
          <word posp="noun" gloss="girl"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
-    <np number="sing" def="def" role="indobj" locus="number">
+    <np number="sing" def="def" role="indobj" locus="number" case="DAT">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

module addgender:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="surprise"/>
    </vp>
-    <np role="subj" case="ERG">
+    <np role="subj" case="ERG" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
          <word posp="verb" gloss="give"/>
        </vp>
-        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG">
+        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2">
          <word posp="noun" gloss="boy"/>
        </np>
-        <np number="sing" role="obj" locus="number" case="NOM">
+        <np number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
          <word posp="noun" gloss="apple"/>
        </np>
-        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT">
+        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1">
          <word posp="noun" gloss="girl"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
-    <np number="sing" def="def" role="indobj" locus="number" case="DAT">
+    <np number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

No change.

copyuptophrase:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2">
      <word posp="verb" gloss="surprise"/>
    </vp>
    <np role="subj" case="ERG" gender="cl.4" number="sing">
      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1">
          <word posp="verb" gloss="give"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2">
          <word posp="noun" gloss="boy"/>
        </np>
        <np number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
          <word posp="noun" gloss="apple"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1">
          <word posp="noun" gloss="girl"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2">
      <word posp="noun" gloss="teacher"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="surprise"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" case="ERG" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1">
+          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="give"/>
+          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2">
          <word posp="noun" gloss="boy"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
          <word posp="noun" gloss="apple"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1">
          <word posp="noun" gloss="girl"/>
+          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2">
      <word posp="noun" gloss="teacher"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="surprise"/>
+      <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" case="ERG" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
-          <word posp="verb" gloss="give"/>
+          <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2">
-          <word posp="noun" gloss="boy"/>
+          <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
-          <word posp="noun" gloss="apple"/>
+          <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1">
-          <word posp="noun" gloss="girl"/>
+          <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
-        <word gloss="COMP" posp="pp"/>
+        <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing"/>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2">
-      <word posp="noun" gloss="teacher"/>
+      <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for boy/noun/case/obligatory
Got ERG
About to call getSlotValue for apple/noun/case/obligatory
Got NOM
About to call getSlotValue for girl/noun/case/obligatory
Got DAT
About to call getSlotValue for teacher/noun/case/obligatory
Got DAT
<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np role="subj" case="ERG" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1">
          <thingy type="vpta" function="proclitic" gloss="PAST"/>
          <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2">
          <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2"/>
+          <thingy type="nouncase" function="suffix" gloss="ERG"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
          <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
+          <thingy type="nouncase" function="suffix" gloss="NOM"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1">
          <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1"/>
+          <thingy type="nouncase" function="suffix" gloss="DAT"/>
          <thingy type="npnumber" function="enclitic" gloss="sing"/>
        </np>
        <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing"/>
      </subs>
    </np>
    <np number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2">
      <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="DAT"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np role="subj" case="ERG" gender="cl.4" number="sing">
-      <subs>
-        <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1">
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-        </vp>
-        <np number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2">
    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-        </np>
-        <np number="sing" role="obj" locus="number" case="NOM" gender="cl.3">
    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
    <thingy type="nouncase" function="suffix" gloss="NOM"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-        </np>
-        <np number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1">
    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="DAT"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-        </np>
    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing"/>
-      </subs>
-    </np>
-    <np number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2">
    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="DAT"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3"/>
-    <thingy type="nouncase" function="suffix" gloss="NOM"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="DAT"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing"/>
-    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="DAT"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2" ph="x i &#xA712; &#x283; o &#xA716; t&#x361;s" slots="Cir Cfr">xi꜒ʃo꜖t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1" ph="d&#x361;&#x291; i &#xA712; &#x292;" slots="Cir Cfr">d͡ʑi꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716; w" slots="Cir Cmr">t͡si#꜖w</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712; &#x283;" slots="Cir Cmr">k͡xau꜒ʃ</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t" slots="Cmr Cfs">bu꜒t</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2" ph="&#x261; i t e&#x2D0; r" slots="C C">ɡiteːr</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t" slots="Cmr Cfs">bu꜒t</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/w/ + /n/ > // + /n/
/t/ + /x/ > // + /k/
/ʃ/ + /b/ > // + /p/
/r/ + /b/ > // + /b/
<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2" ph="x i &#xA712; &#x283; o &#xA716; t&#x361;s" slots="Cir Cfr">xi꜒ʃo꜖t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1" ph="d&#x361;&#x291; i &#xA712; &#x292;" slots="Cir Cfr">d͡ʑi꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716; w" slots="Cir Cmr">t͡si#꜖w</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2" ph="x i &#xA712; &#x283; o &#xA716; t&#x361;s">xi꜒ʃo꜖t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1" ph="d&#x361;&#x291; i &#xA712; &#x292;">d͡ʑi꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716;" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="k&#x361;x y &#xA716; &#x292; e &#xA712; t" slots="Cir Cmr">k͡xy꜖ʒe꜒t</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="x a &#xA712; t&#x361;&#x283;" slots="Cmr Cfs">xa꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712; &#x283;" slots="Cir Cmr">k͡xau꜒ʃ</word>
-    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t" slots="Cmr Cfs">bu꜒t</thingy>
+    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712;" underlying="k&#x361;x au &#xA712; &#x283;">k͡xau꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="p u &#xA712; t" underlying="b u &#xA712; t">pu꜒t</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2" ph="&#x261; i t e&#x2D0; r" slots="C C">ɡiteːr</word>
-    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t" slots="Cmr Cfs">bu꜒t</thingy>
+    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2" ph="&#x261; i t e&#x2D0;" underlying="&#x261; i t e&#x2D0; r">ɡiteː</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t">bu꜒t</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="comp1" translation="It surprised the teacher that the boy had given the girl an apple.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2" ph="x i &#xA712; &#x283; o &#xA716; t&#x361;s">xi꜒ʃo꜖t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1" ph="d&#x361;&#x291; i &#xA712; &#x292;">d͡ʑi꜒ʒ</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716;" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" ph="k&#x361;x y &#xA716; &#x292; e &#xA712;" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="NOM" attach="suffix" ph="k a &#xA712; t&#x361;&#x283;" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712;" underlying="k&#x361;x au &#xA712; &#x283;">k͡xau꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="p u &#xA712; t" underlying="b u &#xA712; t">pu꜒t</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2" ph="&#x261; i t e&#x2D0;" underlying="&#x261; i t e&#x2D0; r">ɡiteː</word>
-    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t">bu꜒t</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="surprise" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.4" indobj="3.sing.cl.2">xi꜒ʃo꜖t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="give" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="3.sing.cl.3" indobj="3.sing.cl.1">d͡ʑi꜒ʒ</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="boy" number="sing" def="def" head="this" role="subj" locus="number" case="ERG" gender="cl.2" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="noun" gloss="apple" number="sing" role="obj" locus="number" case="NOM" gender="cl.3" underlying="k&#x361;x y &#xA716; &#x292; e &#xA712; t">k͡xy꜖ʒe꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="NOM" underlying="x a &#xA712; t&#x361;&#x283;">ka꜒t͡ʃ</thingy>
+    <word posp="noun" gloss="girl" number="sing" def="def" role="indobj" tr="rheme" locus="number" case="DAT" gender="cl.1" underlying="k&#x361;x au &#xA712; &#x283;">k͡xau꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" underlying="b u &#xA712; t">pu꜒t</thingy>
+    <word gloss="COMP" posp="pp" role="subj" case="ERG" gender="cl.4" number="sing">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="teacher" number="sing" def="def" role="indobj" locus="number" case="DAT" gender="cl.2" underlying="&#x261; i t e&#x2D0; r">ɡiteː</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT">bu꜒t</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜒ʃo꜖t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;surprise&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑi꜒ʒ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;give&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;t͡sĩ꜖w&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;boy&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xy꜖ʒe꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;apple&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-xa꜒t͡ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;NOM&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xau꜒ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;girl&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-bu꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;DAT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡiteːr&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;teacher&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-bu꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;DAT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l xi꜒ʃo꜖t͡s ni꜖r xi꜖l d͡ʑi꜒ʒ ni꜖r t͡sĩ꜖ni꜖d͡ʑ k͡xy꜖ʒe꜒ka꜒t͡ʃ k͡xau꜒pu꜒t d͡ʑy꜒ti꜖k ɡiteːbu꜒t</p>
+  <p>خ࣮ل خ࣭ش࣮څ ن࣮ر خ࣮ل ࣆ࣭ژ ن࣮ر څں࣮ن࣮ࣆ کخ࣮ژ࣭ك࣭چ کخو࣭پ࣭ت ࣆ࣭ت࣮ك گتيب࣭ت</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>xi꜒ʃo꜖t͡s</o>
+      <g>surprise</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>d͡ʑi꜒ʒ</o>
+      <g>give</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>t͡sĩ꜖w</o>
+      <g>boy</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>k͡xy꜖ʒe꜒t</o>
+      <g>apple</g>
+    </w>
+    <w>
+      <o>-xa꜒t͡ʃ</o>
+      <g>NOM</g>
+    </w>
+    <w>
+      <o>k͡xau꜒ʃ</o>
+      <g>girl</g>
+    </w>
+    <w>
+      <o>-bu꜒t</o>
+      <g>DAT</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>ɡiteːr</o>
+      <g>teacher</g>
+    </w>
+    <w>
+      <o>-bu꜒t</o>
+      <g>DAT</g>
+    </w>
+  </il>
</example>

initial XML:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp tam="past-punct">
      <verb>tell</verb>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj">
      <noun>boy</noun>
    </np>
    <np role="obj" tr="rheme">
      <subs>
        <vp tam="gnomic">
          <verb>love</verb>
        </vp>
        <np number="sing" def="neither" role="subj">
          <pron person="1excl" number="sing"/>
        </np>
        <np number="sing" def="neither" role="obj">
          <pron person="2" number="sing"/>
        </np>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj">
      <noun>girl</noun>
    </np>
  </s>
</example>

cleanup:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
-    <vp tam="past-punct">
-      <verb>tell</verb>
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+      <word posp="verb" gloss="tell"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj">
-      <noun>boy</noun>
+    <np def="def" number="sing" tr="theme" role="subj" locus="number">
+      <word posp="noun" gloss="boy"/>
    </np>
    <np role="obj" tr="rheme">
      <subs>
-        <vp tam="gnomic">
-          <verb>love</verb>
+        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+          <word posp="verb" gloss="love"/>
        </vp>
-        <np number="sing" def="neither" role="subj">
-          <pron person="1excl" number="sing"/>
+        <np number="sing" def="neither" role="subj" locus="number">
+          <word person="1excl" number="sing" posp="pron"/>
        </np>
-        <np number="sing" def="neither" role="obj">
-          <pron person="2" number="sing"/>
+        <np number="sing" def="neither" role="obj" locus="number">
+          <word person="2" number="sing" posp="pron"/>
        </np>
      </subs>
    </np>
-    <np def="def" number="sing" tr="theme" role="indobj">
-      <noun>girl</noun>
+    <np def="def" number="sing" tr="theme" role="indobj" locus="number">
+      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module articles:

No change.

module nonpastonly:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="tell"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number">
      <word posp="noun" gloss="boy"/>
    </np>
    <np role="obj" tr="rheme">
      <subs>
-        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active">
+        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
          <word posp="verb" gloss="love"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number">
          <word person="1excl" number="sing" posp="pron"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number">
          <word person="2" number="sing" posp="pron"/>
        </np>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module noepistemic:

No change.

module RelN:

No change.

module sentenceconnectors:

No change.

module complementise:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="tell"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number">
      <word posp="noun" gloss="boy"/>
    </np>
    <np role="obj" tr="rheme">
      <subs>
+        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
          <word posp="verb" gloss="love"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number">
          <word person="1excl" number="sing" posp="pron"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number">
          <word person="2" number="sing" posp="pron"/>
        </np>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>
tva1
tva2
tva1
tva2

module affixdensity:

No change.

module adpositions:

No change.

module constorder:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="tell"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number">
      <word posp="noun" gloss="boy"/>
    </np>
    <np role="obj" tr="rheme">
      <subs>
-        <word gloss="COMP" posp="pp"/>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
          <word posp="verb" gloss="love"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number">
          <word person="1excl" number="sing" posp="pron"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number">
          <word person="2" number="sing" posp="pron"/>
        </np>
+        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module casemarking:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="tell"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number">
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np role="obj" tr="rheme">
+    <np role="obj" tr="rheme" case="NOM">
      <subs>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
          <word posp="verb" gloss="love"/>
        </vp>
-        <np number="sing" def="neither" role="subj" locus="number">
+        <np number="sing" def="neither" role="subj" locus="number" case="NOM">
          <word person="1excl" number="sing" posp="pron"/>
        </np>
-        <np number="sing" def="neither" role="obj" locus="number">
+        <np number="sing" def="neither" role="obj" locus="number" case="ACC">
          <word person="2" number="sing" posp="pron"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
-    <np def="def" number="sing" tr="theme" role="indobj" locus="number">
+    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module addgender:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="tell"/>
    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG">
+    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np role="obj" tr="rheme" case="NOM">
+    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
          <word posp="verb" gloss="love"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number" case="NOM">
          <word person="1excl" number="sing" posp="pron"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number" case="ACC">
          <word person="2" number="sing" posp="pron"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
-    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT">
+    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

module propagatenumber:

No change.

module simplifynumber:

No change.

createpronouns:

No change.

module ngen:

No change.

module wordorder:

No change.

module wordorder:

No change.

module wordorder:

No change.

module conjp:

No change.

flattenconjp:

No change.

fixpronouns:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
      <word posp="verb" gloss="tell"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing">
      <subs>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
          <word posp="verb" gloss="love"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number" case="NOM">
-          <word person="1excl" number="sing" posp="pron"/>
+          <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number" case="ACC">
-          <word person="2" number="sing" posp="pron"/>
+          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

copyuptophrase:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST">
+    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1">
      <word posp="verb" gloss="tell"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="boy"/>
    </np>
-    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing">
+    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl">
      <subs>
-        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES">
+        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
          <word posp="verb" gloss="love"/>
        </vp>
-        <np number="sing" def="neither" role="subj" locus="number" case="NOM">
+        <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
          <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
        </np>
-        <np number="sing" def="neither" role="obj" locus="number" case="ACC">
+        <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
      <word posp="noun" gloss="girl"/>
    </np>
  </s>
</example>

prodrop:

No change.

addclitics:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1">
+      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="tell"/>
+      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="boy"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl">
      <subs>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
+          <thingy type="vpta" function="proclitic" gloss="PRES"/>
          <word posp="verb" gloss="love"/>
+          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
          <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
        </np>
        <word gloss="COMP" posp="pp"/>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
      <word posp="noun" gloss="girl"/>
+      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

propagateArgumentCase:

No change.

unwrapArgumentNPs:

No change.

unwrapOwnerOwned:

No change.

movedowntoword:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
-      <word posp="verb" gloss="tell"/>
+      <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
-      <word posp="noun" gloss="boy"/>
+      <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl">
      <subs>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
          <thingy type="vpta" function="proclitic" gloss="PRES"/>
-          <word posp="verb" gloss="love"/>
+          <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
-          <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2"/>
+          <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
-          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2"/>
+          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
        </np>
-        <word gloss="COMP" posp="pp"/>
+        <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl"/>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
-      <word posp="noun" gloss="girl"/>
+      <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

addaffixes:

About to call getSlotValue for boy/noun/case/obligatory
Got ERG
About to call getSlotValue for girl/noun/case/obligatory
Got DAT
<example id="quot1" translation="The boy told the girl that he loved her.">
  <s>
    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1">
      <thingy type="vpta" function="proclitic" gloss="PAST"/>
      <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1"/>
      <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
    </vp>
    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
      <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
+      <thingy type="nouncase" function="suffix" gloss="ERG"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl">
      <subs>
        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
          <thingy type="vpta" function="proclitic" gloss="PRES"/>
          <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
          <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
        </vp>
        <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
          <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
        </np>
        <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
          <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
        </np>
        <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl"/>
      </subs>
    </np>
    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
      <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1"/>
+      <thingy type="nouncase" function="suffix" gloss="DAT"/>
      <thingy type="npnumber" function="enclitic" gloss="sing"/>
    </np>
  </s>
</example>

flatten:

<example id="quot1" translation="The boy told the girl that he loved her.">
-  <s>
-    <vp negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1">
+  <flat>
    <thingy type="vpta" function="proclitic" gloss="PAST"/>
    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    </vp>
-    <np def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2">
    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
    <thingy type="nouncase" function="suffix" gloss="ERG"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-    <np role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl">
-      <subs>
-        <vp negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">
    <thingy type="vpta" function="proclitic" gloss="PRES"/>
    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-        </vp>
-        <np number="sing" def="neither" role="subj" locus="number" case="NOM" person="1excl">
    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
-        </np>
-        <np number="sing" def="neither" role="obj" locus="number" case="ACC" person="2">
    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
-        </np>
    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl"/>
-      </subs>
-    </np>
-    <np def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1">
    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1"/>
    <thingy type="nouncase" function="suffix" gloss="DAT"/>
    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    </np>
-  </s>
+  </flat>
</example>

addvocab:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST"/>
-    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2"/>
-    <thingy type="nouncase" function="suffix" gloss="ERG"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
-    <thingy type="vpta" function="proclitic" gloss="PRES"/>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing"/>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q"/>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM"/>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC"/>
-    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl"/>
-    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1"/>
-    <thingy type="nouncase" function="suffix" gloss="DAT"/>
-    <thingy type="npnumber" function="enclitic" gloss="sing"/>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
+    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1" ph="w y&#x2D0; &#xA712; m" slots="Cir Cfr">wyː꜒m</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716; w" slots="Cir Cmr">t͡si#꜖w</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s" slots="Cir Cfr">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
+    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712; &#x283;" slots="Cir Cmr">k͡xau꜒ʃ</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t" slots="Cmr Cfs">bu꜒t</thingy>
+    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

vowelharmony:

No change.

applysandhi:

/w/ + /n/ > // + /n/
/ʃ/ + /b/ > // + /p/
<example id="quot1" translation="The boy told the girl that he loved her.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l" slots="Cip Cfp">xi꜖l</thingy>
-    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1" ph="w y&#x2D0; &#xA712; m" slots="Cir Cfr">wyː꜒m</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716; w" slots="Cir Cmr">t͡si#꜖w</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;" slots="Cmr Cfs">ni꜖d͡ʑ</thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
+    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1" ph="w y&#x2D0; &#xA712; m">wyː꜒m</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716;" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s" slots="Cir Cfr">li꜒t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r" slots="Cis Cfs">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t" slots="Cir Cfr">k͡xø꜒t</word>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z" slots="Cir Cfr">ɡø꜖z</word>
-    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k" slots="Cir Cfr">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712; &#x283;" slots="Cir Cmr">k͡xau꜒ʃ</word>
-    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="b u &#xA712; t" slots="Cmr Cfs">bu꜒t</thingy>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
+    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712;" underlying="k&#x361;x au &#xA712; &#x283;">k͡xau꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="p u &#xA712; t" underlying="b u &#xA712; t">pu꜒t</thingy>
    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
  </flat>
</example>

removetags:

<example id="quot1" translation="The boy told the girl that he loved her.">
  <flat>
-    <thingy type="vpta" function="proclitic" gloss="PAST" ph="x i &#xA716; l">xi꜖l</thingy>
-    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1" ph="w y&#x2D0; &#xA712; m">wyː꜒m</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" ph="t&#x361;s i# &#xA716;" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
-    <thingy type="nouncase" function="suffix" gloss="ERG" attach="suffix" ph="n i &#xA716; d&#x361;&#x291;">ni꜖d͡ʑ</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
-    <thingy type="vpta" function="proclitic" gloss="PRES" ph="" slots="Cip Cfp"></thingy>
-    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing" ph="l i &#xA712; t&#x361;s">li꜒t͡s</word>
-    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q" ph="n i &#xA716; r">ni꜖r</thingy>
-    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM" ph="k&#x361;x &#xF8; &#xA712; t">k͡xø꜒t</word>
-    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC" ph="&#x261; &#xF8; &#xA716; z">ɡø꜖z</word>
-    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl" ph="d&#x361;&#x291; y &#xA712; t i &#xA716; k">d͡ʑy꜒ti꜖k</word>
-    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1" ph="k&#x361;x au &#xA712;" underlying="k&#x361;x au &#xA712; &#x283;">k͡xau꜒</word>
-    <thingy type="nouncase" function="suffix" gloss="DAT" attach="suffix" ph="p u &#xA712; t" underlying="b u &#xA712; t">pu꜒t</thingy>
-    <thingy type="npnumber" function="enclitic" gloss="sing" ph="" slots="Cis Cfs"></thingy>
+    <thingy type="vpta" function="proclitic" gloss="PAST">xi꜖l</thingy>
+    <word posp="verb" gloss="tell" negation="POS" question="not.Q" tense="past" asp="action" mode="indicative" voice="active" ta="PAST" subj="3.sing.cl.2" obj="1excl.sing" indobj="3.sing.cl.1">wyː꜒m</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word posp="noun" gloss="boy" def="def" number="sing" tr="theme" role="subj" locus="number" case="ERG" gender="cl.2" underlying="t&#x361;s i# &#xA716; w">t͡si#꜖</word>
+    <thingy type="nouncase" function="suffix" gloss="ERG">ni꜖d͡ʑ</thingy>
+    <word posp="verb" gloss="love" negation="POS" question="not.Q" tense="gnomic" asp="imperfective" mode="indicative" voice="active" ta="PRES" subj="1excl.sing" obj="2.sing">li꜒t͡s</word>
+    <thingy type="vpmode.voice.negation.question" function="enclitic" gloss="indicative.active.POS.not.Q">ni꜖r</thingy>
+    <word person="1excl" number="sing" posp="pron" gloss="1excl.sing" gender="cl.2" def="neither" role="subj" locus="number" case="NOM">k͡xø꜒t</word>
+    <word person="2" number="sing" posp="pron" gloss="2.sing" gender="cl.2" def="neither" role="obj" locus="number" case="ACC">ɡø꜖z</word>
+    <word gloss="COMP" posp="pp" role="obj" tr="rheme" case="NOM" gender="cl.4" number="sing" person="1excl">d͡ʑy꜒ti꜖k</word>
+    <word posp="noun" gloss="girl" def="def" number="sing" tr="theme" role="indobj" locus="number" case="DAT" gender="cl.1" underlying="k&#x361;x au &#xA712; &#x283;">k͡xau꜒</word>
+    <thingy type="nouncase" function="suffix" gloss="DAT" underlying="b u &#xA712; t">pu꜒t</thingy>
  </flat>
+  <p>&lt;span class="ilpair"&gt;&lt;span class="mor"&gt;xi꜖l&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;PAST&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;wyː꜒m&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;tell&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;t͡sĩ꜖w&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;boy&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-ni꜖d͡ʑ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;ERG&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;li꜒t͡s&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;love&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ni꜖r&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;indicative.active.&lt;span class="glssc"&gt;POS&lt;/span&gt;.not.Q&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xø꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;1excl.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;ɡø꜖z&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;2.sing&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;d͡ʑy꜒ti꜖k&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;COMP&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;k͡xau꜒ʃ&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;girl&lt;/span&gt;&lt;/span&gt; &lt;span class="ilpair"&gt;&lt;span class="mor"&gt;-bu꜒t&lt;/span&gt;&lt;br&gt;&lt;span class="gls"&gt;&lt;span class="glssc"&gt;DAT&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</p>
+  <p>xi꜖l wyː꜒m ni꜖r t͡sĩ꜖ni꜖d͡ʑ li꜒t͡s ni꜖r k͡xø꜒t ɡø꜖z d͡ʑy꜒ti꜖k k͡xau꜒pu꜒t</p>
+  <p>خ࣮ل وي࣭م ن࣮ر څں࣮ن࣮ࣆ ل࣭څ ن࣮ر کخ࣭ت گ࣮ز ࣆ࣭ت࣮ك کخو࣭پ࣭ت</p>
+  <il>
+    <w>
+      <o>xi꜖l</o>
+      <g>PAST</g>
+    </w>
+    <w>
+      <o>wyː꜒m</o>
+      <g>tell</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>t͡sĩ꜖w</o>
+      <g>boy</g>
+    </w>
+    <w>
+      <o>-ni꜖d͡ʑ</o>
+      <g>ERG</g>
+    </w>
+    <w>
+      <o>li꜒t͡s</o>
+      <g>love</g>
+    </w>
+    <w>
+      <o>ni꜖r</o>
+      <g>indicative.active.POS.not.Q</g>
+    </w>
+    <w>
+      <o>k͡xø꜒t</o>
+      <g>1excl.sing</g>
+    </w>
+    <w>
+      <o>ɡø꜖z</o>
+      <g>2.sing</g>
+    </w>
+    <w>
+      <o>d͡ʑy꜒ti꜖k</o>
+      <g>COMP</g>
+    </w>
+    <w>
+      <o>k͡xau꜒ʃ</o>
+      <g>girl</g>
+    </w>
+    <w>
+      <o>-bu꜒t</o>
+      <g>DAT</g>
+    </w>
+  </il>
</example>