@@ -193,7 +193,7 @@ class TeiMetadataWriter(val writer: PrettyXMLWriter, val export: DocumentExport)
193193 // <label>
194194 writer.writeElement(" label" , " POS-tagger and lemmatiser" )
195195 // <ptr>
196- writer.writeEmptyElement(" ptr" , mapOf (" target" to export.tagger.uri ))
196+ writer.writeEmptyElement(" ptr" , mapOf (" target" to export.tagger.id ))
197197 }
198198 }
199199 }
@@ -217,7 +217,7 @@ class TeiMetadataWriter(val writer: PrettyXMLWriter, val export: DocumentExport)
217217 " subtype" to " POS-tagging_lemmatisation" ,
218218 )
219219 ) {
220- addInterGrpTo (
220+ addInterpGrpTo (
221221 mapOf (
222222 " annotationStyle" to " inline" ,
223223 " Documentation" to " " ,
@@ -252,7 +252,7 @@ class TeiMetadataWriter(val writer: PrettyXMLWriter, val export: DocumentExport)
252252 " subtype" to " POS-tagging_lemmatisationProvenance1" ,
253253 )
254254 ) {
255- addInterGrpTo (" annotationMode" , " automatically annotated" )
255+ addInterpGrpTo (" annotationMode" , " automatically annotated" )
256256 // processor interp is special, using @sameAs
257257 writer.wrapIn(" interpGrp" , " type" to " processor" ) {
258258 writer.writeEmptyElement(" interp" , mapOf (" sameAs" to " #${export.tagger.id} " ))
@@ -286,7 +286,7 @@ class TeiMetadataWriter(val writer: PrettyXMLWriter, val export: DocumentExport)
286286 writer.wrapIn(" language" , " ident" to langCode) {
287287 writer.writeCharacters(language, true )
288288 writer.writeNewLine()
289- addInterGrpTo (" dominantLanguage" , " true" )
289+ addInterpGrpTo (" dominantLanguage" , " true" )
290290 }
291291 }
292292 }
@@ -298,9 +298,9 @@ class TeiMetadataWriter(val writer: PrettyXMLWriter, val export: DocumentExport)
298298 * <interp>[value]</interp>
299299 * </interpGrp>
300300 */
301- private fun addInterGrpTo (key : String , value : String? ) {
301+ private fun addInterpGrpTo (key : String , value : String? ) {
302302 // <interpGrp type="[key]">
303- writer.wrapIn(" interGrp " , " type" to key) {
303+ writer.wrapIn(" interpGrp " , " type" to key) {
304304 // <interp>
305305 if (value.isNullOrEmpty()) {
306306 // only write key in self-closing tag
@@ -312,7 +312,7 @@ class TeiMetadataWriter(val writer: PrettyXMLWriter, val export: DocumentExport)
312312 }
313313 }
314314
315- private fun addInterGrpTo (keyValues : Map <String , String >) {
316- keyValues.forEach { (key, value) -> addInterGrpTo (key, value) }
315+ private fun addInterpGrpTo (keyValues : Map <String , String >) {
316+ keyValues.forEach { (key, value) -> addInterpGrpTo (key, value) }
317317 }
318318}
0 commit comments