Updated new metadata scheme
diff --git a/t/WDD/G27/38989/base/paragraph.xml b/t/WDD/G27/38989/base/paragraph.xml
new file mode 100644
index 0000000..533e2e4
--- /dev/null
+++ b/t/WDD/G27/38989/base/paragraph.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WDD11_G27.38989" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+  <spanList>
+    <span from="0" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/base/sentences.xml b/t/WDD/G27/38989/base/sentences.xml
new file mode 100644
index 0000000..cda2b83
--- /dev/null
+++ b/t/WDD/G27/38989/base/sentences.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WDD11_G27.38989" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+  <spanList>
+    <span from="0" to="22" />
+    <span from="23" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/base/tokens_aggr.xml b/t/WDD/G27/38989/base/tokens_aggr.xml
new file mode 100644
index 0000000..d9521de
--- /dev/null
+++ b/t/WDD/G27/38989/base/tokens_aggr.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WDD11_G27.38989" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+  <spanList>
+    <span id="t_0" from="0" to="1" />
+    <span id="t_1" from="1" to="2" />
+    <span id="t_2" from="2" to="5" />
+    <span id="t_3" from="6" to="19" />
+    <span id="t_4" from="20" to="21" />
+    <span id="t_5" from="21" to="22" />
+    <span id="t_6" from="23" to="27" />
+    <span id="t_7" from="28" to="32" />
+    <span id="t_8" from="33" to="34" />
+    <span id="t_9" from="34" to="37" />
+    <span id="t_10" from="37" to="38" />
+    <span id="t_11" from="38" to="39" />
+    <span id="t_12" from="40" to="46" />
+    <span id="t_13" from="46" to="47" />
+    <span id="t_14" from="47" to="48" />
+    <span id="t_15" from="48" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/base/tokens_conservative.xml b/t/WDD/G27/38989/base/tokens_conservative.xml
new file mode 100644
index 0000000..d9521de
--- /dev/null
+++ b/t/WDD/G27/38989/base/tokens_conservative.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WDD11_G27.38989" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+  <spanList>
+    <span id="t_0" from="0" to="1" />
+    <span id="t_1" from="1" to="2" />
+    <span id="t_2" from="2" to="5" />
+    <span id="t_3" from="6" to="19" />
+    <span id="t_4" from="20" to="21" />
+    <span id="t_5" from="21" to="22" />
+    <span id="t_6" from="23" to="27" />
+    <span id="t_7" from="28" to="32" />
+    <span id="t_8" from="33" to="34" />
+    <span id="t_9" from="34" to="37" />
+    <span id="t_10" from="37" to="38" />
+    <span id="t_11" from="38" to="39" />
+    <span id="t_12" from="40" to="46" />
+    <span id="t_13" from="46" to="47" />
+    <span id="t_14" from="47" to="48" />
+    <span id="t_15" from="48" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/connexor/metadata.xml b/t/WDD/G27/38989/connexor/metadata.xml
new file mode 100644
index 0000000..2fa7ef2
--- /dev/null
+++ b/t/WDD/G27/38989/connexor/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="metadata.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<metadata type="foundry" xmlns="http://ids-mannheim.de/ns/KorAP" docid="WDD11_G27.38989">
+  <doc file="../text.xml" />
+  <foundry name="mpt">
+    <layer name="sent" type="segm" gran="s" file="sentences.xml" />
+    <layer name="phrase" file="phrase.xml" />
+    <layer name="token" type="segm" gran="tok" file="tokens.xml" />
+    <layer name="syntax" file="syntax.xml" />
+    <layer name="morph" file="morpho.xml" />
+  </foundry>
+</metadata>
diff --git a/t/WDD/G27/38989/connexor/morpho.xml b/t/WDD/G27/38989/connexor/morpho.xml
new file mode 100644
index 0000000..3a09a52
--- /dev/null
+++ b/t/WDD/G27/38989/connexor/morpho.xml
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s0" from="0" to="1">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">{</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1" from="0" to="1">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">{</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2" from="2" to="5">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">sein</f>
+            <f name="pos">V</f>
+            <f name="msd">IND:PAST</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s3" from="6" to="19">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">lösch kandidat</f>
+            <f name="pos">N</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s4" from="19" to="20">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">|</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s5" from="20" to="22">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">6.</f>
+            <f name="pos">NUM</f>
+            <f name="msd">ORD</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s6" from="23" to="27">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">juli</f>
+            <f name="pos">N</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s7" from="28" to="32">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">2007</f>
+            <f name="pos">NUM</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s8" from="32" to="33">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">|</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s9" from="33" to="34">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">(</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s10" from="34" to="37">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">erl</f>
+            <f name="pos">N</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s11" from="37" to="38">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">.</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s12" from="38" to="39">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">,</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s13" from="40" to="46">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">bleiben</f>
+            <f name="pos">V</f>
+            <f name="msd">IND:PRES</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s14" from="46" to="47">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">)</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s15" from="47" to="48">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">}</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s16" from="48" to="49">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">}</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/connexor/phrase.xml b/t/WDD/G27/38989/connexor/phrase.xml
new file mode 100644
index 0000000..193aea9
--- /dev/null
+++ b/t/WDD/G27/38989/connexor/phrase.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span from="6" to="19">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="pos">np</f>
+      </fs>
+    </span>
+    <span from="20" to="27">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="pos">np</f>
+      </fs>
+    </span>
+    <span from="34" to="37">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="pos">np</f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/connexor/sentences.xml b/t/WDD/G27/38989/connexor/sentences.xml
new file mode 100644
index 0000000..b2e693a
--- /dev/null
+++ b/t/WDD/G27/38989/connexor/sentences.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span from="0" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/connexor/syntax.xml b/t/WDD/G27/38989/connexor/syntax.xml
new file mode 100644
index 0000000..9c1a355
--- /dev/null
+++ b/t/WDD/G27/38989/connexor/syntax.xml
@@ -0,0 +1,177 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s0" from="0" to="1">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">{</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1" from="0" to="1">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">{</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2" from="2" to="5">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">sein</f>
+            <f name="pos">@MAIN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s3" from="6" to="19">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">lösch kandidat</f>
+            <f name="pos">@NH</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s4" from="19" to="20">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">|</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s5" from="20" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">6.</f>
+            <f name="pos">@PREMOD</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s6" from="23" to="27">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">juli</f>
+            <f name="pos">@NH</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s7" from="28" to="32">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">2007</f>
+            <f name="pos">@NH</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s8" from="32" to="33">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">|</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s9" from="33" to="34">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">(</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s10" from="34" to="37">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">erl</f>
+            <f name="pos">@NH</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s11" from="37" to="38">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">.</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s12" from="38" to="39">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">,</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s13" from="40" to="46">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">bleiben</f>
+            <f name="pos">@MAIN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s14" from="46" to="47">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">)</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s15" from="47" to="48">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">}</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s16" from="48" to="49">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">}</f>
+            <f name="pos"></f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/connexor/tokens.xml b/t/WDD/G27/38989/connexor/tokens.xml
new file mode 100644
index 0000000..c10ea12
--- /dev/null
+++ b/t/WDD/G27/38989/connexor/tokens.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="t_0" from="0" to="1" />
+    <span id="t_1" from="0" to="1" />
+    <span id="t_2" from="2" to="5" />
+    <span id="t_3" from="6" to="19" />
+    <span id="t_4" from="19" to="20" />
+    <span id="t_5" from="20" to="22" />
+    <span id="t_6" from="23" to="27" />
+    <span id="t_7" from="28" to="32" />
+    <span id="t_8" from="32" to="33" />
+    <span id="t_9" from="33" to="34" />
+    <span id="t_10" from="34" to="37" />
+    <span id="t_11" from="37" to="38" />
+    <span id="t_12" from="38" to="39" />
+    <span id="t_13" from="40" to="46" />
+    <span id="t_14" from="46" to="47" />
+    <span id="t_15" from="47" to="48" />
+    <span id="t_16" from="48" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/data.xml b/t/WDD/G27/38989/data.xml
new file mode 100644
index 0000000..64ee0a8
--- /dev/null
+++ b/t/WDD/G27/38989/data.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="text.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<raw_text docid="WDD11_G27.38989" xmlns="http://ids-mannheim.de/ns/KorAP">
+  <metadata file="metadata.xml" />
+  <text>{{War Löschkandidat|6. Juli 2007|(erl., bleibt)}}</text>
+</raw_text>
diff --git a/t/WDD/G27/38989/header.xml b/t/WDD/G27/38989/header.xml
new file mode 100644
index 0000000..96e3569
--- /dev/null
+++ b/t/WDD/G27/38989/header.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+<idsHeader type="text"
+                    pattern="text"
+                    status="new"
+                    version="1.0"
+                    TEIform="teiHeader">
+            <fileDesc>
+               <titleStmt>
+                  <textSigle>WDD11/G27.38989</textSigle>
+                  <t.title assemblage="external">WDD11/G27.38989: Diskussion:Gunter A. Pilz, In: Wikipedia - URL:http://de.wikipedia.org/wiki/Diskussion:Gunter_A._Pilz: Wikipedia, 2011</t.title>
+               </titleStmt>
+               <editionStmt version="0"/>
+               <publicationStmt>
+                  <distributor/>
+                  <pubAddress/>
+                  <availability region="world">CC-BY-SA</availability>
+                  <pubDate/>
+               </publicationStmt>
+               <sourceDesc Default="n">
+                  <biblStruct Default="n">
+                     <analytic>
+                        <h.title type="main">Diskussion:Gunter A. Pilz</h.title>
+                        <h.title type="sub"/>
+                        <h.title type="abbr" level="m"/>
+                        <h.title type="abbr" level="a"/>
+                        <h.author>&euro;pa,  u.a.</h.author>
+                        <editor/>
+                        <imprint/>
+                        <biblScope type="subsume"/>
+                        <biblScope type="pp"/>
+                        <biblNote n="1"/>
+                     </analytic>
+                     <monogr>
+                        <h.title type="main"/>
+                        <editor>wikipedia.org</editor>
+                        <edition>
+                           <further>
+                    Dump file "dewiki-20111029-pages-meta-current.xml.bz2" 
+                    retrieved from http://dumps.wikimedia.org
+                  </further>
+                           <kind/>
+                           <appearance/>
+                        </edition>
+                        <imprint>
+                           <pubDate type="year">2011</pubDate>
+                           <pubDate type="month">10</pubDate>
+                           <pubDate type="day">29</pubDate>
+                        </imprint>
+                        <biblScope type="vol"/>
+                        <biblScope type="volume-title"/>
+                     </monogr>
+                  </biblStruct>
+                  <reference type="complete" assemblage="non-automatic">WDD11/G27.38989: Diskussion:Gunter A. Pilz, In: Wikipedia - URL:http://de.wikipedia.org/wiki/Diskussion:Gunter_A._Pilz: Wikipedia, 2007</reference>
+               </sourceDesc>
+            </fileDesc>
+            <encodingDesc>
+               <samplingDecl Default="n"/>
+               <editorialDecl Default="n">
+                  <pagination type="no"/>
+               </editorialDecl>
+               <tagsDecl>
+                  <tagUsage gi="list" occurs="0"/>
+                  <tagUsage gi="p" occurs="0"/>
+               </tagsDecl>
+            </encodingDesc>
+            <profileDesc>
+               <creation>
+                  <creatDate>2007.07.07</creatDate>
+                  <creatRef/>
+                  <creatRefShort/>
+               </creation>
+               <textDesc>
+                  <textDomain/>
+               </textDesc>
+            </profileDesc>
+         </idsHeader>
diff --git a/t/WDD/G27/38989/mate/dependency.xml b/t/WDD/G27/38989/mate/dependency.xml
new file mode 100644
index 0000000..288f518
--- /dev/null
+++ b/t/WDD/G27/38989/mate/dependency.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?><layer xmlns="http://ids-mannheim.de/ns/KorA" version="KorA-0.2" docid="???_???.38989"><spanList><span from="0" to="1"><rel label="_"><span from="1" to="5"><rel label="_"><span from="6" to="21"><rel label="_"><span from="21" to="22"><rel label="_"><span from="23" to="27"><rel label="_"><span from="28" to="34"><rel label="_"><span from="34" to="38"><rel label="_"><span from="38" to="39"><rel label="_"><span from="40" to="46"><rel label="_"><span from="46" to="47"><rel label="_"><span from="47" to="48"><rel label="_"><span from="48" to="49"><rel label="_"></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></rel></span></spanList></layer>
\ No newline at end of file
diff --git a/t/WDD/G27/38989/mate/morpho.xml b/t/WDD/G27/38989/mate/morpho.xml
new file mode 100644
index 0000000..9c3520a
--- /dev/null
+++ b/t/WDD/G27/38989/mate/morpho.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?><layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="???_???.38989"><spanList><span id="s1_1" from="0" to="1"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">{</f><f name="pos">XY</f><f name="msd">_</f></fs></f></fs></span><span id="s1_2" from="1" to="5"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">{war</f><f name="pos">XY</f><f name="msd">_</f></fs></f></fs></span><span id="s1_3" from="6" to="21"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">löschkandidat|6</f><f name="pos">NN</f><f name="msd">case=nom|number=sg|gender=neut</f></fs></f></fs></span><span id="s1_4" from="21" to="22"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">--</f><f name="pos">$.</f><f name="msd">_</f></fs></f></fs></span><span id="s2_1" from="23" to="27"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">juli</f><f name="pos">NN</f><f name="msd">case=nom|number=sg|gender=masc</f></fs></f></fs></span><span id="s2_2" from="28" to="34"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">2007|(</f><f name="pos">VVFIN</f><f name="msd">number=sg|person=3|tense=past|mood=ind</f></fs></f></fs></span><span id="s2_3" from="34" to="38"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">erl.</f><f name="pos">ADJD</f><f name="msd">degree=pos</f></fs></f></fs></span><span id="s2_4" from="38" to="39"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">--</f><f name="pos">$,</f><f name="msd">_</f></fs></f></fs></span><span id="s2_5" from="40" to="46"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">bleiben</f><f name="pos">VVFIN</f><f name="msd">number=sg|person=3|tense=pres|mood=ind</f></fs></f></fs></span><span id="s2_6" from="46" to="47"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">--</f><f name="pos">$(</f><f name="msd">_</f></fs></f></fs></span><span id="s2_7" from="47" to="48"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">}</f><f name="pos">XY</f><f name="msd">_</f></fs></f></fs></span><span id="s2_8" from="48" to="49"><fs type="lex" xmlns="http://www.tei-c.org/ns/1.0"><f name="lex"><fs><f name="lemma">}</f><f name="pos">XY</f><f name="msd">_</f></fs></f></fs></span></spanList></layer>
\ No newline at end of file
diff --git a/t/WDD/G27/38989/mate/pipeline/one_token_per_line.txt b/t/WDD/G27/38989/mate/pipeline/one_token_per_line.txt
new file mode 100644
index 0000000..982a716
--- /dev/null
+++ b/t/WDD/G27/38989/mate/pipeline/one_token_per_line.txt
@@ -0,0 +1,14 @@
+
+1	{	_	_	_	_	_	_	_	_	_	_	_	_	_
+2	{War	_	_	_	_	_	_	_	_	_	_	_	_	_
+3	Löschkandidat|6	_	_	_	_	_	_	_	_	_	_	_	_	_
+4	.	_	_	_	_	_	_	_	_	_	_	_	_	_
+
+1	Juli	_	_	_	_	_	_	_	_	_	_	_	_	_
+2	2007|(	_	_	_	_	_	_	_	_	_	_	_	_	_
+3	erl.	_	_	_	_	_	_	_	_	_	_	_	_	_
+4	,	_	_	_	_	_	_	_	_	_	_	_	_	_
+5	bleibt	_	_	_	_	_	_	_	_	_	_	_	_	_
+6	)	_	_	_	_	_	_	_	_	_	_	_	_	_
+7	}	_	_	_	_	_	_	_	_	_	_	_	_	_
+8	}	_	_	_	_	_	_	_	_	_	_	_	_	_
diff --git a/t/WDD/G27/38989/mate/pipeline/parsed.txt b/t/WDD/G27/38989/mate/pipeline/parsed.txt
new file mode 100644
index 0000000..825bb35
--- /dev/null
+++ b/t/WDD/G27/38989/mate/pipeline/parsed.txt
@@ -0,0 +1,14 @@
+1	{	_	{	_	XY	_	_	-1	-1	_	_	_	_
+2	{War	_	{war	_	XY	_	_	-1	-1	_	_	_	_
+3	Löschkandidat|6	_	löschkandidat|6	_	NN	_	case=nom|number=sg|gender=neut	-1	-1	_	_	_	_
+4	.	_	--	_	$.	_	_	-1	-1	_	_	_	_
+
+1	Juli	_	juli	_	NN	_	case=nom|number=sg|gender=masc	-1	-1	_	_	_	_
+2	2007|(	_	2007|(	_	VVFIN	_	number=sg|person=3|tense=past|mood=ind	-1	-1	_	_	_	_
+3	erl.	_	erl.	_	ADJD	_	degree=pos	-1	-1	_	_	_	_
+4	,	_	--	_	$,	_	_	-1	-1	_	_	_	_
+5	bleibt	_	bleiben	_	VVFIN	_	number=sg|person=3|tense=pres|mood=ind	-1	-1	_	_	_	_
+6	)	_	--	_	$(	_	_	-1	-1	_	_	_	_
+7	}	_	}	_	XY	_	_	-1	-1	_	_	_	_
+8	}	_	}	_	XY	_	_	-1	-1	_	_	_	_
+
diff --git a/t/WDD/G27/38989/mate/tokenSpans/number_tokenSpans.xml b/t/WDD/G27/38989/mate/tokenSpans/number_tokenSpans.xml
new file mode 100644
index 0000000..27e0c15
--- /dev/null
+++ b/t/WDD/G27/38989/mate/tokenSpans/number_tokenSpans.xml
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><article><token number="1" start="0" end="1"></token><token number="2" start="1" end="5"></token><token number="3" start="6" end="21"></token><token number="4" start="21" end="22"></token><token number="1" start="23" end="27"></token><token number="2" start="28" end="34"></token><token number="3" start="34" end="38"></token><token number="4" start="38" end="39"></token><token number="5" start="40" end="46"></token><token number="6" start="46" end="47"></token><token number="7" start="47" end="48"></token><token number="8" start="48" end="49"></token></article>
\ No newline at end of file
diff --git a/t/WDD/G27/38989/opennlp/morpho.xml b/t/WDD/G27/38989/opennlp/morpho.xml
new file mode 100644
index 0000000..d6edadf
--- /dev/null
+++ b/t/WDD/G27/38989/opennlp/morpho.xml
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?><?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?><layer xmlns="http://ids-mannheim.de/ns/KorAP" docid="WDD11_G27.38989" VERSION="-corpus">
+   <spanList>
+      <span id="s_0" from="0" to="1">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">ADJA</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_1" from="1" to="5">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">NN</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_2" from="6" to="21">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">NE</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_3" from="21" to="22">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">$.</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_4" from="23" to="27">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">NN</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_5" from="28" to="34">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">CARD</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_6" from="34" to="38">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">ADJD</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_7" from="38" to="39">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">$,</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_8" from="40" to="46">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">VVFIN</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_9" from="46" to="47">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">$(</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_10" from="47" to="48">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">$.</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+      <span id="s_11" from="48" to="49">
+         <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+            <f name="lex">
+               <fs>
+                  <f name="pos">NE</f>
+               </fs>
+            </f>
+         </fs>
+      </span>
+   </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/opennlp/sentences.xml b/t/WDD/G27/38989/opennlp/sentences.xml
new file mode 100644
index 0000000..0d14ae2
--- /dev/null
+++ b/t/WDD/G27/38989/opennlp/sentences.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?><?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?><layer xmlns="http://ids-mannheim.de/ns/KorAP" docid="WDD11_G27.38989" VERSION="-corpus">
+   <spanList>
+      <span from="0" to="22"/>
+      <span from="23" to="49"/>
+   </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/opennlp/tokens.xml b/t/WDD/G27/38989/opennlp/tokens.xml
new file mode 100644
index 0000000..ff42305
--- /dev/null
+++ b/t/WDD/G27/38989/opennlp/tokens.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?><?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?><layer xmlns="http://ids-mannheim.de/ns/KorAP" docid="WDD11_G27.38989" VERSION="-corpus">
+   <spanList>
+      <span id="s_0" from="0" to="1"/>
+      <span id="s_1" from="1" to="5"/>
+      <span id="s_2" from="6" to="21"/>
+      <span id="s_3" from="21" to="22"/>
+      <span id="s_4" from="23" to="27"/>
+      <span id="s_5" from="28" to="34"/>
+      <span id="s_6" from="34" to="38"/>
+      <span id="s_7" from="38" to="39"/>
+      <span id="s_8" from="40" to="46"/>
+      <span id="s_9" from="46" to="47"/>
+      <span id="s_10" from="47" to="48"/>
+      <span id="s_11" from="48" to="49"/>
+   </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/struct/structure.xml b/t/WDD/G27/38989/struct/structure.xml
new file mode 100644
index 0000000..2bcdceb
--- /dev/null
+++ b/t/WDD/G27/38989/struct/structure.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer docid="WDD11_G27.38989" xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4">
+  <spanList>
+    <span id="s0" from="0" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">idsText</f>
+        <f name="attr">
+          <fs type="attr">
+            <f name="xmlns:xsi">http://www.w3.org/2001/XMLSchema-instance</f>
+            <f name="n">de.Diskussion:Gunter_A._Pilz</f>
+            <f name="version">1</f>
+            <f name="id">WDD11.G27.38989</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1" from="0" to="0">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">idsHeader</f>
+        <f name="attr">
+          <fs type="attr">
+            <f name="version">1.0</f>
+            <f name="status">new</f>
+            <f name="TEIform">teiHeader</f>
+            <f name="pattern">text</f>
+            <f name="type">text</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2" from="0" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">text</f>
+      </fs>
+    </span>
+    <span id="s3" from="0" to="0">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">front</f>
+      </fs>
+    </span>
+    <span id="s4" from="0" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">body</f>
+      </fs>
+    </span>
+    <span id="s5" from="0" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">div</f>
+        <f name="attr">
+          <fs type="attr">
+            <f name="n">0</f>
+            <f name="org">uniform</f>
+            <f name="part">N</f>
+            <f name="type">section</f>
+            <f name="sample">complete</f>
+            <f name="complete">y</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s6" from="0" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">p</f>
+        <f name="attr">
+          <fs type="attr">
+            <f name="part">N</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s7" from="0" to="22">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">s</f>
+        <f name="attr">
+          <fs type="attr">
+            <f name="part">N</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s8" from="23" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">s</f>
+        <f name="attr">
+          <fs type="attr">
+            <f name="part">N</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s9" from="49" to="49">
+      <fs type="struct" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="name">back</f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/text.txt b/t/WDD/G27/38989/text.txt
new file mode 100644
index 0000000..07536b3
--- /dev/null
+++ b/t/WDD/G27/38989/text.txt
@@ -0,0 +1 @@
+{{War Löschkandidat|6. Juli 2007|(erl., bleibt)}}
\ No newline at end of file
diff --git a/t/WDD/G27/38989/tree_tagger/metadata.xml b/t/WDD/G27/38989/tree_tagger/metadata.xml
new file mode 100644
index 0000000..b17695b
--- /dev/null
+++ b/t/WDD/G27/38989/tree_tagger/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="metadata.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<metadata type="foundry" xmlns="http://ids-mannheim.de/ns/KorAP" docid="WDD11_G27.38989">
+  <doc file="../text.xml" />
+  <foundry name="tt">
+    <layer name="token" type="segm" gran="tok" file="tokens.xml" />
+    <layer name="morph" file="morpho.xml" />
+    <layer name="sent" type="segm" gran="s" file="sentences.xml" />
+  </foundry>
+</metadata>
diff --git a/t/WDD/G27/38989/tree_tagger/morpho.xml b/t/WDD/G27/38989/tree_tagger/morpho.xml
new file mode 100644
index 0000000..c92a614
--- /dev/null
+++ b/t/WDD/G27/38989/tree_tagger/morpho.xml
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s_0" from="0" to="1">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.845079</f>
+            <f name="ctag">NE</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_1" from="1" to="2">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.764651</f>
+            <f name="ctag">NE</f>
+          </fs>
+        </f>
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.119333</f>
+            <f name="ctag">NN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_2" from="2" to="5">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">sein</f>
+            <f name="certainty">1.000000</f>
+            <f name="ctag">VAFIN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_3" from="6" to="21">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.919709</f>
+            <f name="ctag">NN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_4" from="21" to="22">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">.</f>
+            <f name="certainty">1.000000</f>
+            <f name="ctag">$.</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_5" from="23" to="27">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">Juli</f>
+            <f name="certainty">1.000000</f>
+            <f name="ctag">NN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_6" from="28" to="37">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.964764</f>
+            <f name="ctag">NN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_7" from="37" to="38">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">.</f>
+            <f name="certainty">1.000000</f>
+            <f name="ctag">$.</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_8" from="38" to="39">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">,</f>
+            <f name="certainty">1.000000</f>
+            <f name="ctag">$,</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_9" from="40" to="46">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">bleiben</f>
+            <f name="certainty">0.999967</f>
+            <f name="ctag">VVFIN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_10" from="46" to="47">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">)</f>
+            <f name="certainty">1.000000</f>
+            <f name="ctag">$(</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_11" from="47" to="48">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.735844</f>
+            <f name="ctag">NE</f>
+          </fs>
+        </f>
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.130306</f>
+            <f name="ctag">NN</f>
+          </fs>
+        </f>
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.098927</f>
+            <f name="ctag">ADJA</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s_12" from="48" to="49">
+      <fs type="lex" xmlns="http://www.tei-c.org/ns/1.0">
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.693285</f>
+            <f name="ctag">NE</f>
+          </fs>
+        </f>
+        <f name="lex">
+          <fs>
+            <f name="lemma">UNKNOWN</f>
+            <f name="certainty">0.172229</f>
+            <f name="ctag">NN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/tree_tagger/sentences.xml b/t/WDD/G27/38989/tree_tagger/sentences.xml
new file mode 100644
index 0000000..d6b0c11
--- /dev/null
+++ b/t/WDD/G27/38989/tree_tagger/sentences.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span from="0" to="22" />
+    <span from="23" to="38" />
+    <span from="38" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/tree_tagger/tokens.xml b/t/WDD/G27/38989/tree_tagger/tokens.xml
new file mode 100644
index 0000000..9787494
--- /dev/null
+++ b/t/WDD/G27/38989/tree_tagger/tokens.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s_0" from="0" to="1" />
+    <span id="s_1" from="1" to="2" />
+    <span id="s_2" from="2" to="5" />
+    <span id="s_3" from="6" to="21" />
+    <span id="s_4" from="21" to="22" />
+    <span id="s_5" from="23" to="27" />
+    <span id="s_6" from="28" to="37" />
+    <span id="s_7" from="37" to="38" />
+    <span id="s_8" from="38" to="39" />
+    <span id="s_9" from="40" to="46" />
+    <span id="s_10" from="46" to="47" />
+    <span id="s_11" from="47" to="48" />
+    <span id="s_12" from="48" to="49" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/xip/constituency.xml b/t/WDD/G27/38989/xip/constituency.xml
new file mode 100644
index 0000000..7ec9251
--- /dev/null
+++ b/t/WDD/G27/38989/xip/constituency.xml
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s1_n10" from="0" to="23">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">TOP</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s1_n0" />
+      <rel label="dominates" uri="morpho.xml#s1_n2" />
+      <rel label="dominates" target="s1_n14" />
+      <rel label="dominates" uri="morpho.xml#s1_n8" />
+    </span>
+    <span id="s1_n0" from="0" to="1">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s1_n2" from="1" to="2">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s1_n14" from="2" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">MC</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s1_n4" />
+      <rel label="dominates" target="s1_n13" />
+    </span>
+    <span id="s1_n4" from="2" to="5">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">VERB</f>
+      </fs>
+    </span>
+    <span id="s1_n13" from="6" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NP</f>
+      </fs>
+      <rel label="dominates" target="s1_n12" />
+    </span>
+    <span id="s1_n12" from="6" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NPA</f>
+      </fs>
+      <rel label="dominates" target="s1_n11" />
+    </span>
+    <span id="s1_n11" from="6" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NOUN</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s1_n6" />
+    </span>
+    <span id="s1_n6" from="6" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">SYMBOL</f>
+      </fs>
+    </span>
+    <span id="s1_n8" from="22" to="23">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s2_n18" from="24" to="50">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">TOP</f>
+      </fs>
+      <rel label="dominates" target="s2_n23" />
+      <rel label="dominates" target="s2_n24" />
+      <rel label="dominates" target="s2_n26" />
+      <rel label="dominates" uri="morpho.xml#s2_n14" />
+      <rel label="dominates" uri="morpho.xml#s2_n16" />
+    </span>
+    <span id="s2_n23" from="24" to="28">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NP</f>
+      </fs>
+      <rel label="dominates" target="s2_n21" />
+    </span>
+    <span id="s2_n21" from="24" to="28">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NPA</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s2_n0" />
+    </span>
+    <span id="s2_n0" from="24" to="28">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NOUN</f>
+      </fs>
+    </span>
+    <span id="s2_n24" from="29" to="34">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NP</f>
+      </fs>
+      <rel label="dominates" target="s2_n22" />
+    </span>
+    <span id="s2_n22" from="29" to="34">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NPA</f>
+      </fs>
+      <rel label="dominates" target="s2_n20" />
+    </span>
+    <span id="s2_n20" from="29" to="34">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NUM</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s2_n2" />
+    </span>
+    <span id="s2_n2" from="29" to="34">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NUM</f>
+      </fs>
+    </span>
+    <span id="s2_n26" from="34" to="48">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">INS</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s2_n4" />
+      <rel label="dominates" target="s2_n25" />
+      <rel label="dominates" uri="morpho.xml#s2_n8" />
+      <rel label="dominates" uri="morpho.xml#s2_n10" />
+      <rel label="dominates" uri="morpho.xml#s2_n12" />
+    </span>
+    <span id="s2_n4" from="34" to="35">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s2_n25" from="35" to="39">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">NP</f>
+      </fs>
+      <rel label="dominates" target="s2_n19" />
+    </span>
+    <span id="s2_n19" from="35" to="39">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">AP</f>
+      </fs>
+      <rel label="dominates" uri="morpho.xml#s2_n6" />
+    </span>
+    <span id="s2_n6" from="35" to="39">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">ADJ</f>
+      </fs>
+    </span>
+    <span id="s2_n8" from="39" to="40">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s2_n10" from="41" to="47">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">VERB</f>
+      </fs>
+    </span>
+    <span id="s2_n12" from="47" to="48">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s2_n14" from="48" to="49">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+    <span id="s2_n16" from="49" to="50">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="node">
+        <f name="const">PUNCT</f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/xip/dependency.xml b/t/WDD/G27/38989/xip/dependency.xml
new file mode 100644
index 0000000..f8c7d47
--- /dev/null
+++ b/t/WDD/G27/38989/xip/dependency.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s1_n4" from="2" to="5">
+      <rel label="VMAIN" type="unary" />
+    </span>
+    <span id="s1_n11" from="6" to="22">
+      <rel label="SUBJ">
+        <span from="2" to="5" />
+      </rel>
+    </span>
+    <span id="s2_n0" from="24" to="28">
+      <rel label="DATE" type="unary" />
+      <rel label="THEMA" type="unary" />
+    </span>
+    <span id="s2_n2" from="29" to="34">
+      <rel label="THEMA" type="unary" />
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/xip/metadata.xml b/t/WDD/G27/38989/xip/metadata.xml
new file mode 100644
index 0000000..dc80a3f
--- /dev/null
+++ b/t/WDD/G27/38989/xip/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="metadata.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<metadata type="foundry" xmlns="http://ids-mannheim.de/ns/KorAP" docid="WDD11_G27.38989">
+  <doc file="../data.xml" />
+  <foundry name="xip">
+    <layer name="token" segm="tok" file="tokens.xml" />
+    <layer name="sent" segm="s" file="sentences.xml" />
+    <layer name="syntax-const" file="constituency.xml" info="const" />
+    <layer name="syntax-dep" file="dependency.xml" info="rel" />
+    <layer name="morph" file="morpho.xml" info="pos lemma" />
+  </foundry>
+</metadata>
diff --git a/t/WDD/G27/38989/xip/morpho.xml b/t/WDD/G27/38989/xip/morpho.xml
new file mode 100644
index 0000000..ed496e2
--- /dev/null
+++ b/t/WDD/G27/38989/xip/morpho.xml
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s1_n0" from="0" to="1">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">{</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1_n2" from="1" to="2">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">{</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1_n4" from="2" to="5">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">sein</f>
+            <f name="pos">VERB</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1_n6" from="6" to="22">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">Löschkandidat|6</f>
+            <f name="pos">SYMBOL</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s1_n8" from="22" to="23">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">.</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n0" from="24" to="28">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">Juli</f>
+            <f name="pos">NOUN</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n2" from="29" to="34">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">2007|</f>
+            <f name="pos">NUM</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n4" from="34" to="35">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">(</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n6" from="35" to="39">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">erl.</f>
+            <f name="pos">ADJ</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n8" from="39" to="40">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">,</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n10" from="41" to="47">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">bleiben</f>
+            <f name="pos">VERB</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n12" from="47" to="48">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">)</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n14" from="48" to="49">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">}</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+    <span id="s2_n16" from="49" to="50">
+      <fs xmlns="http://www.tei-c.org/ns/1.0" type="lex">
+        <f name="lex">
+          <fs>
+            <f name="lemma">}</f>
+            <f name="pos">PUNCT</f>
+          </fs>
+        </f>
+      </fs>
+    </span>
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/xip/sentences.xml b/t/WDD/G27/38989/xip/sentences.xml
new file mode 100644
index 0000000..0f2575f
--- /dev/null
+++ b/t/WDD/G27/38989/xip/sentences.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span from="0" to="23" />
+    <span from="24" to="50" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/38989/xip/tokens.xml b/t/WDD/G27/38989/xip/tokens.xml
new file mode 100644
index 0000000..f42deb0
--- /dev/null
+++ b/t/WDD/G27/38989/xip/tokens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-model href="span.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+
+<layer xmlns="http://ids-mannheim.de/ns/KorAP" version="KorAP-0.4" docid="WDD11_G27.38989">
+  <spanList>
+    <span id="s1_n0" from="0" to="1" />
+    <span id="s1_n2" from="1" to="2" />
+    <span id="s1_n4" from="2" to="5" />
+    <span id="s1_n6" from="6" to="22" />
+    <span id="s1_n8" from="22" to="23" />
+    <span id="s2_n0" from="24" to="28" />
+    <span id="s2_n2" from="29" to="34" />
+    <span id="s2_n4" from="34" to="35" />
+    <span id="s2_n6" from="35" to="39" />
+    <span id="s2_n8" from="39" to="40" />
+    <span id="s2_n10" from="41" to="47" />
+    <span id="s2_n12" from="47" to="48" />
+    <span id="s2_n14" from="48" to="49" />
+    <span id="s2_n16" from="49" to="50" />
+  </spanList>
+</layer>
diff --git a/t/WDD/G27/header.xml b/t/WDD/G27/header.xml
new file mode 100644
index 0000000..717ef05
--- /dev/null
+++ b/t/WDD/G27/header.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml-model href="header.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
+<!DOCTYPE idsCorpus PUBLIC "-//IDS//DTD IDS-XCES 1.0//EN" "http://corpora.ids-mannheim.de/idsxces1/DTD/ids.xcesdoc.dtd">
+
+    <idsHeader TEIform="teiHeader" pattern="text" status="new" type="document" version="1.0">
+      <fileDesc>
+        <titleStmt>
+          <dokumentSigle>WDD11/G27</dokumentSigle>
+          <d.title>Wikipedia, Diskussionen zu Artikeln mit Anfangsbuchstabe G, Teil 27</d.title>
+        </titleStmt>
+        <publicationStmt>
+          <distributor/>
+          <pubAddress/>
+          <availability region="world">CC-BY-SA</availability>
+          <pubDate/>
+        </publicationStmt>
+        <sourceDesc Default="n">
+          <biblStruct Default="n">
+            <monogr>
+              <h.title type="main"/>
+              <imprint/>
+            </monogr>
+          </biblStruct>
+        </sourceDesc>
+      </fileDesc>
+    </idsHeader>
\ No newline at end of file