{"id":359,"date":"2016-11-15T05:33:29","date_gmt":"2016-11-15T05:33:29","guid":{"rendered":"https:\/\/scholarblogs.emory.edu\/582atextmining\/?p=359"},"modified":"2016-11-15T05:33:29","modified_gmt":"2016-11-15T05:33:29","slug":"imperial-titles-in-late-roman-documents","status":"publish","type":"post","link":"https:\/\/scholarblogs.emory.edu\/582atextmining\/2016\/11\/15\/imperial-titles-in-late-roman-documents\/","title":{"rendered":"Imperial Titles in Late Roman Documents"},"content":{"rendered":"<p>Sorry for the delay on my blog post! I&#8217;ve finally managed to figure out the coding to search for all inflections of the various\u00a0<em>nostra<\/em>\/<em>mea<\/em> epithets in Latin documents. I was having trouble using .*? to account for varying numbers of characters between\u00a0<em>nostra\/mea<\/em> and its accompanying noun (e.g.\u00a0<em>nostra clementia<\/em>), as R was, despite the &#8220;?&#8221;, still being far too greedy. str_locate_all showed that it was pairing\u00a0<em>nostra<\/em>&#8216;s and\u00a0titles that were thousands of characters apart!<\/p>\n<p>My solution has been to ask R to search for combinations of\u00a0<em>nostra<\/em>\/<em>mea<\/em> and the accompanying noun with anywhere from 0 to 80 characters inbetween. Furthermore, I&#8217;ve simplified my code by only\u00a0searching for the parts of these words that don&#8217;t inflect. So, for example, I wrote:<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}clementia.{0,80}|clementia.{0,80}nostra.{0,80}|mea.{0,80}clementia.{0,80}|clementia.{0,80}mea.{0,80}&#8221;) #CLEMENTIA<\/p>\n<p>This accounts for all inflections; it turns up\u00a0<em>nostra\/mea clementia<\/em>,\u00a0<em>nostrae\/meae clementiae,<\/em>\u00a0and <em>nostram\/meam clementiam<\/em>. I did this for all of the imperial epithets that I have identified within the Theodosian Code. I then used those results to locate and read each instance in the Latin text, both so as to confirm their use as imperial epithets within their respective contexts, and so as to record\u00a0their exact location within the Code. It&#8217;s been time consuming, but very rewarding. I now have\u00a0complete and accurate results for their frequency within the Code:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-361\" src=\"https:\/\/scholarblogs.emory.edu\/582atextmining\/files\/2016\/11\/Rplot.png\" alt=\"rplot\" width=\"858\" height=\"537\" srcset=\"https:\/\/scholarblogs.emory.edu\/582atextmining\/files\/2016\/11\/Rplot.png 858w, https:\/\/scholarblogs.emory.edu\/582atextmining\/files\/2016\/11\/Rplot-300x188.png 300w, https:\/\/scholarblogs.emory.edu\/582atextmining\/files\/2016\/11\/Rplot-768x481.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/p>\n<p>Now that I have an effective formula down, I will run through the rest of my documents this week: the main ones are the Code of Justinian, Symmachus&#8217;\u00a0<em>Relationes<\/em> to the emperors, and a series of Latin Panegyrics. I hope to have a few of these done before class on Thursday; I&#8217;ll update this post with those results.<\/p>\n<p><span style=\"text-decoration: underline\">My code<\/span><\/p>\n<p>#THEODOSIAN CODE<\/p>\n<p>CTh.scan &lt;- scan(&#8220;~\/Education\/Emory\/Coursework\/Digital Humanities Methods\/Project\/Theodosian Code Raw Text.txt&#8221;,<br \/>\nwhat=&#8221;character&#8221;, sep=&#8221;\\n&#8221;)<br \/>\nCTh.df &lt;- data.frame(CTh.scan, stringsAsFactors=FALSE)<br \/>\nCTh.df &lt;- str_replace_all(string = CTh.df$CTh.scan, pattern = &#8220;[:punct:]&#8221;, replacement = &#8220;&#8221;)<br \/>\nCTh.df &lt;- data.frame(CTh.df, stringsAsFactors = FALSE)<br \/>\nCTh.lines &lt;- tolower(CTh.df[,1])<br \/>\nbook.headings &lt;- grep(&#8220;book&#8221;, CTh.lines)<br \/>\nstart.lines &lt;- book.headings + 1<br \/>\nend.lines &lt;- book.headings[2:length(book.headings)] &#8211; 1<br \/>\nend.lines &lt;- c(end.lines, length(CTh.lines))<br \/>\nCTh.df &lt;- data.frame(&#8220;start&#8221; = start.lines, &#8220;end&#8221;=end.lines, &#8220;text&#8221;=NA)<br \/>\ni &lt;- 1<br \/>\nfor (i in 1:length(CTh.df$end))<br \/>\n{CTh.df$text[i] &lt;- paste(CTh.lines[CTh.df$start[i]:CTh.df$end[i]], collapse = &#8221; &#8220;)}<\/p>\n<p>CTh.df$Book &lt;- seq.int(nrow(CTh.df))<\/p>\n<p>#String Extracts of Imperial Titles<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}aeternita.{0,80}|aeternita.{0,80}nostra.{0,80}|mea.{0,80}aeternita.{0,80}|aeternita.{0,80}mea.{0,80}&#8221;) #AETERNITAS<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}clementia.{0,80}|clementia.{0,80}nostra.{0,80}|mea.{0,80}clementia.{0,80}|clementia.{0,80}mea.{0,80}&#8221;) #CLEMENTIA<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}lenita.{0,80}|lenita.{0,80}nostra.{0,80}|mea.{0,80}lenita.{0,80}|lenita.{0,80}mea.{0,80}&#8221;) #LENITAS<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}lenitud.{0,80}|lenitud.{0,80}nostra.{0,80}|mea.{0,80}lenitud.{0,80}|lenitud.{0,80}mea.{0,80}&#8221;) #LENITUDO<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}maiesta.{0,80}|maiesta.{0,80}nostra.{0,80}|mea.{0,80}maiesta.{0,80}|maiesta.{0,80}mea.{0,80}&#8221;) #MAIESTAS<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}mansuetud.{0,80}|mansuetud.{0,80}nostra.{0,80}|mea.{0,80}mansuetud.{0,80}|mansuetud.{0,80}mea.{0,80}&#8221;) #MANSUETUDO<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}moderatio.{0,80}|moderatio.{0,80}nostra.{0,80}|mea.{0,80}moderatio.{0,80}|moderatio.{0,80}mea.{0,80}&#8221;) #MODERATIO<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostrum.{0,80}numen.{0,80}|numen.{0,80}nostrum.{0,80}|nostr.{0,80}numin.{0,80}|numin.{0,80}nostr.{0,80}|meum.{0,80}numen.{0,80}|numen.{0,80}meum.{0,80}|me.{0,80}numin.{0,80}|numin.{0,80}me.{0,80}&#8221;) #NUMEN<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}perennita.{0,80}|perennita.{0,80}nostra.{0,80}|mea.{0,80}perennita.{0,80}|perennita.{0,80}mea.{0,80}&#8221;) #PERENNITAS<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}pieta.{0,80}|pieta.{0,80}nostra.{0,80}|mea.{0,80}pieta.{0,80}|pieta.{0,80}mea.{0,80}&#8221;) #PIETAS<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}scientia.{0,80}|scientia.{0,80}nostra.{0,80}|mea.{0,80}scientia.{0,80}|scientia.{0,80}mea.{0,80}&#8221;) #SCIENTIA<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}serenita.{0,80}|serenita.{0,80}nostra.{0,80}|mea.{0,80}serenita.{0,80}|serenita.{0,80}mea.{0,80}&#8221;) #SERENITAS<\/p>\n<p>str_extract_all(string = CTh.df$text, pattern = &#8220;nostra.{0,80}tranquillita.{0,80}|tranquillita.{0,80}nostra.{0,80}|mea.{0,80}tranquillita.{0,80}|tranquillita.{0,80}mea.{0,80}&#8221;) #TRANQUILLITAS<\/p>\n<p>#Imperial Title Sums<\/p>\n<p>aeternitas &lt;- 2<br \/>\nclementia &lt;- 93<br \/>\nlenitas &lt;- 2<br \/>\nlenitudo &lt;- 2<br \/>\nmaiestas &lt;- 12<br \/>\nmansuetudo &lt;- 59<br \/>\nmoderatio &lt;- 2<br \/>\nnumen &lt;- 27<br \/>\nperennitas &lt;- 12<br \/>\npietas &lt;- 9<br \/>\nscientia &lt;- 32<br \/>\nserenitas &lt;- 57<br \/>\ntranquillitas &lt;- 10<\/p>\n<p>#Imperial Title Sum Graph<\/p>\n<p>Frequency &lt;- c(clementia, mansuetudo, serenitas, scientia, numen, maiestas, tranquillitas, pietas, aeternitas, lenitas, lenitudo, moderatio)<br \/>\nTitle &lt;- c(&#8220;Clementia&#8221;, &#8220;Mansuetudo&#8221;, &#8220;Serenitas&#8221;, &#8220;Scientia&#8221;, &#8220;Numen&#8221;, &#8220;Maiestas&#8221;, &#8220;Tranquillitas&#8221;, &#8220;Pietas&#8221;, &#8220;Aeternitas&#8221;, &#8220;Lenitas&#8221;, &#8220;Lenitudo&#8221;, &#8220;Moderatio&#8221;)<br \/>\nsum.df &lt;- cbind.data.frame(Title, Frequency)<br \/>\nsum.df$Title &lt;- factor(sum.df$Title, levels = sum.df$Title[order(sum.df$Frequency)]) #Reorders dataframe based on Frequency<\/p>\n<p>ggplot(data=sum.df, aes(x=Title, Frequency), y=Frequency) + geom_bar(stat = &#8220;identity&#8221;) + coord_flip() #Word Total Graph<\/p>\n<p><span style=\"text-decoration: underline\">Index of Imperial Epithets in the Theodosian Code<\/span><\/p>\n<p>Nostra Aeternitas<\/p>\n<p>10.22.3<\/p>\n<p>Mea Aeternitas<\/p>\n<p>12.1.160<\/p>\n<p>Nostra Clementia<\/p>\n<p>1.1.5<br \/>\n1.7.4<br \/>\n1.14.1<br \/>\n2.6.1<br \/>\n2.8.20<br \/>\n2.23.1<br \/>\n5.1.2<br \/>\n5.2.1<br \/>\n5.15.21<br \/>\n5.16.31<br \/>\n6.2.26<br \/>\n6.4.18<br \/>\n6.4.33<br \/>\n6.23.4<br \/>\n6.30.4<br \/>\n6.35.14<br \/>\n7.1.16<br \/>\n7.1.17<br \/>\n7.4.21<br \/>\n7.4.25<br \/>\n7.6.5<br \/>\n7.13.13<br \/>\n7.21.4<br \/>\n8.5.1<br \/>\n8.5.5<br \/>\n8.5.30<br \/>\n8.5.44<br \/>\n8.5.50<br \/>\n8.5.54<br \/>\n8.5.56<br \/>\n8.5.57<br \/>\n8.10.3<br \/>\n9.16.12<br \/>\n9.17.2<br \/>\n9.21.6<br \/>\n9.34.7<br \/>\n9.40.16<br \/>\n9.40.16<br \/>\n9.41.1<br \/>\n9.45.4<br \/>\n10.1.16<br \/>\n10.10.26<br \/>\n10.10.32<br \/>\n10.10.34<br \/>\n10.14.1<br \/>\n10.15.2<br \/>\n11.7.15<br \/>\n11.16.7<br \/>\n11.16.8<br \/>\n11.20.4<br \/>\n11.28.3<br \/>\n11.28.14<br \/>\n11.30.13<br \/>\n11.30.54<br \/>\n11.30.57<br \/>\n11.30.61<br \/>\n11.36.24<br \/>\n12.1.14<br \/>\n12.1.14<br \/>\n12.1.15<br \/>\n12.1.146<br \/>\n12.1.169<br \/>\n12.1.184<br \/>\n12.6.30<br \/>\n12.10.1<br \/>\n12.12.4<br \/>\n12.12.14<br \/>\n13.1.20<br \/>\n13.3.17<br \/>\n14.10.3<br \/>\n14.15.5<br \/>\n14.17.5<br \/>\n14.17.14<br \/>\n15.1.44<br \/>\n15.1.49<br \/>\n15.3.4<br \/>\n15.6.1<br \/>\n16.1.2<br \/>\n16.2.42<br \/>\n16.3.2<br \/>\n16.5.46<br \/>\n16.5.49<br \/>\n16.5.54<br \/>\n16.5.54<br \/>\n16.5.60<br \/>\n16.5.63<br \/>\n16.8.17<br \/>\n16.11.2<\/p>\n<p>Mea Clementia<\/p>\n<p>1.8.2<br \/>\n1.8.3<br \/>\n6.26.17<br \/>\n7.16.2<br \/>\n11.20.5<\/p>\n<p>Nostra Lenitas<\/p>\n<p>1.22.2<br \/>\n10.8.3<\/p>\n<p>Nostra Lenitudo<\/p>\n<p>8.12.6<br \/>\n15.1.5<\/p>\n<p>Nostra Maiestas<\/p>\n<p>6.21.1<br \/>\n6.27.17<br \/>\n6.27.17<br \/>\n8.4.26<br \/>\n8.5.39<br \/>\n11.29.1<br \/>\n11.30.66<br \/>\n11.30.68<br \/>\n13.3.18<br \/>\n14.3.18<br \/>\n15.1.47<br \/>\n16.10.20<\/p>\n<p>Nostra Mansuetudo<\/p>\n<p>1.2.8<br \/>\n1.5.9<br \/>\n1.10.1<br \/>\n1.15.8<br \/>\n1.28.1<br \/>\n3.9.1<br \/>\n4.14.1<br \/>\n6.2.19<br \/>\n6.22.8<br \/>\n6.23.4<br \/>\n6.30.18<br \/>\n6.30.20<br \/>\n7.13.9<br \/>\n8.5.12<br \/>\n8.5.22<br \/>\n8.5.54<br \/>\n8.5.58<br \/>\n8.8.2<br \/>\n8.10.2<br \/>\n9.16.10<br \/>\n9.30.2<br \/>\n10.7.2<br \/>\n10.7.2<br \/>\n10.9.2<br \/>\n10.9.3<br \/>\n10.10.20<br \/>\n10.16.2<br \/>\n11.7.21<br \/>\n11.12.4<br \/>\n11.16.11<br \/>\n11.16.14<br \/>\n11.28.3<br \/>\n11.28.5<br \/>\n11.30.32<br \/>\n11.30.41<br \/>\n11.30.41<br \/>\n12.6.5<br \/>\n12.6.12<br \/>\n12.6.28<br \/>\n12.12.5<br \/>\n12.12.10<br \/>\n12.12.10<br \/>\n12.19.3<br \/>\n13.3.4<br \/>\n13.5.38<br \/>\n13.6.5<br \/>\n14.1.2<br \/>\n14.4.3<br \/>\n14.9.1<br \/>\n15.3.1<br \/>\n15.5.5<br \/>\n15.7.4<br \/>\n15.7.6<br \/>\n15.7.9<br \/>\n16.2.12<br \/>\n16.5.7<br \/>\n16.5.38<br \/>\n16.10.2<\/p>\n<p>Mea Mansuetudo<\/p>\n<p>12.1.121<\/p>\n<p>Nostra Moderatio<\/p>\n<p>6.30.24<br \/>\n8.18.3<\/p>\n<p>Nostrum Numen<\/p>\n<p>1.2.12<br \/>\n1.9.2<br \/>\n2.23.1<br \/>\n2.33.4<br \/>\n5.12.3<br \/>\n5.12.3<br \/>\n6.4.29<br \/>\n6.4.32<br \/>\n6.5.2<br \/>\n6.14.3<br \/>\n6.23.3<br \/>\n6.30.15<br \/>\n7.7.4<br \/>\n7.8.3<br \/>\n8.1.13<br \/>\n8.5.40<br \/>\n8.5.62<br \/>\n9.40.11<br \/>\n11.21.3<br \/>\n11.28.15<br \/>\n11.30.49<br \/>\n12.12.7<br \/>\n15.4.1<br \/>\n15.5.5<br \/>\n16.4.4<br \/>\n16.8.13<\/p>\n<p>Meum Numen<\/p>\n<p>11.1.33<\/p>\n<p>Nostra Perennitas<\/p>\n<p>1.1.5<br \/>\n2.4.4<br \/>\n4.4.5<br \/>\n5.15.18<br \/>\n7.7.4<br \/>\n9.19.3<br \/>\n9.38.8<br \/>\n10.20.10<br \/>\n12.12.9<br \/>\n13.5.12<br \/>\n15.1.31<\/p>\n<p>Mea Perennitas<\/p>\n<p>6.30.21<\/p>\n<p>Nostra Pietas<\/p>\n<p>5.12.3<br \/>\n6.10.1<br \/>\n10.26.1<br \/>\n11.1.34<br \/>\n11.1.36<br \/>\n13.1.21<br \/>\n14.26.2<br \/>\n15.1.37<\/p>\n<p>Mea Pietas<\/p>\n<p>14.16.2<\/p>\n<p>Nostra Serenitas<\/p>\n<p>1.1.2<br \/>\n1.12.5<br \/>\n1.22.2<br \/>\n2.16.2<br \/>\n4.4.3<br \/>\n5.13.2<br \/>\n5.16.31<br \/>\n6.8.1<br \/>\n6.22.3<br \/>\n6.23.1<br \/>\n6.26.13<br \/>\n6.27.8<br \/>\n6.29.3<br \/>\n6.30.17<br \/>\n7.1.17<br \/>\n7.8.10<br \/>\n8.5.14<br \/>\n8.5.22<br \/>\n8.5.32<br \/>\n8.5.45<br \/>\n8.5.48<br \/>\n8.5.56<br \/>\n8.7.16<br \/>\n9.19.3<br \/>\n9.38.6<br \/>\n9.38.9<br \/>\n9.40.7<br \/>\n9.40.20<br \/>\n9.42.14<br \/>\n9.42.19<br \/>\n9.42.20<br \/>\n10.10.11<br \/>\n11.2.5<br \/>\n11.16.20<br \/>\n11.28.4<br \/>\n11.30.47<br \/>\n11.30.56<br \/>\n11.30.64<br \/>\n11.31.9<br \/>\n11.31.9<br \/>\n12.13.6<br \/>\n13.10.8<br \/>\n14.2.1<br \/>\n14.4.8<br \/>\n15.1.11<br \/>\n15.1.26<br \/>\n15.1.42<br \/>\n15.1.51<br \/>\n15.5.5<br \/>\n15.7.6<br \/>\n15.7.6<br \/>\n16.2.37<br \/>\n16.5.12<br \/>\n16.5.14<br \/>\n16.8.22<br \/>\n16.11.3<\/p>\n<p>Mea Serenitas<br \/>\n11.20.5<\/p>\n<p>Nostra Scientia<\/p>\n<p>1.1.5<br \/>\n1.5.1<br \/>\n1.15.2<br \/>\n1.16.6<br \/>\n1.29.1<br \/>\n2.18.1<br \/>\n6.4.21<br \/>\n7.1.12<br \/>\n8.5.25<br \/>\n9.1.1<br \/>\n9.1.13<br \/>\n9.4.1<br \/>\n9.21.1<br \/>\n9.34.3<br \/>\n10.8.3<br \/>\n11.7.16<br \/>\n11.16.8<br \/>\n11.16.8<br \/>\n11.29.2<br \/>\n11.30.1<br \/>\n11.30.1<br \/>\n11.30.9<br \/>\n11.30.18<br \/>\n11.30.18<br \/>\n11.37.1<br \/>\n12.1.1<br \/>\n12.12.3<br \/>\n15.1.2<br \/>\n15.1.2<br \/>\n15.1.30<br \/>\n16.10.1<br \/>\n16.10.15<\/p>\n<p>Nostra Tranquillitas<\/p>\n<p>1.2.10<br \/>\n1.6.4<br \/>\n5.15.18<br \/>\n6.4.31<br \/>\n6.12.1<br \/>\n8.7.16<br \/>\n11.30.31<br \/>\n16.1.4<br \/>\n16.2.15<br \/>\n16.4.1<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sorry for the delay on my blog post! I&#8217;ve finally managed to figure out the coding to search for all inflections of the various\u00a0nostra\/mea epithets in Latin documents. I was having trouble using .*? to account for varying numbers of characters between\u00a0nostra\/mea and its accompanying noun (e.g.\u00a0nostra clementia), as R was, despite the &#8220;?&#8221;, still &hellip; <a href=\"https:\/\/scholarblogs.emory.edu\/582atextmining\/2016\/11\/15\/imperial-titles-in-late-roman-documents\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Imperial Titles in Late Roman Documents<\/span><\/a><\/p>\n","protected":false},"author":4011,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/users\/4011"}],"replies":[{"embeddable":true,"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":3,"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/posts\/359\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scholarblogs.emory.edu\/582atextmining\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}