<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Computational identification of phonological parallelisms in Brazilian literary prose</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Universidade Estadual de Feira de Santana</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Feira de Santana</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Brazil leo.os.lima@gmail.com angelocl@uefs.br</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Universidade Federal de Juiz de Fora</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Juiz de Fora RJ</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Brazil queirozj@gmail.com</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>The identification of parallel patterns of phonological structures in literary prose is still an unexplored phenomenon in Literary Studies and Digital Humanities. We propose a computational method for searching and identification of phonological parallelisms in Brazilian Portuguese literary prose that outputs sequences of repeated syllables, based on two parameters related to repetition closeness and minimum number of repeated occurrences. Preliminary results from processing three literary works are presented, with quantitative measures and a co-location perspective of sequences.</p>
      </abstract>
      <kwd-group>
        <kwd>Computing</kwd>
        <kwd>Literary Prose</kwd>
        <kwd>Phonological Parallelisms</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        It is well known that the “structure of poetry is that of a continuous parallelism”[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
at several organization levels: grammatical, semantic, syntactic, phonological,
rhythmic, prosodic, even typographic. This phenomenon has no correspondence in
prose. But, as Jakobson[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] argues, “literary prose lies between poetry as such and
the common, practical language of communication, and it must not be forgotten
that it is incomparably more dificult to analyze an intermediate phenomenon,
transition, than studying extreme phenomena.” In literary prose, several forms of
parallelism are distributed in many levels, allowing the identification of patterns
of phonological structures under the seemingly uniform surface of writing, a
surprising and still little explored phenomenon in Digital Humanities for Literary
Studies.
      </p>
      <p>
        We are especially interested in the occurrence of phonological parallelisms
in literary prose of Portuguese language. Usually defined as the repetition of
consonant sound close enough to afect the listening of the reader[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], alliterations
are among the best known examples of phonological parallelisms (others are
assonance, consonance, rhyme). Phonological parallelism in prose has been studied
in previous works in Literary Studies, outside Natural Language Processing and
⋆ Copyright © 2022 for this paper by its authors. Use permitted under Creative
      </p>
      <p>Commons License Attribution 4.0 International (CC BY 4.0).
Digital Humanities, but it is an open challenge to computationally identify
such phenomena and also to identify the behavioral patterns of phonological
parallelisms at various observational scales, from one literary work to many works,
by the same author, group of authors, or aesthetic movements.</p>
      <p>Here we propose a computational method for searching and identification
of repeated (phoneme) syllables in Brazilian Portuguese literary prose. The
computational algorithms are guided by parameters that influence constraints in
the retrieval of sequences of repeated syllables in the provided text. We present
quantitative measures to describe preliminary results obtained from three works
− Os Sert˜oes (Rebellion in the Backlands, 1902), by Euclides da Cunha, Triste
ifm de Policarpo Quaresma (1915), by Lima Barreto, and Macunaima (1928), by
Mario de Andrade − and also exhibit a co-location perspective of results.</p>
      <p>
        There have been previous works in Digital Humanities for computational
identification of phonological patterns in literary works with close and distant
reading approaches[
        <xref ref-type="bibr" rid="ref1 ref3 ref8 ref9">1, 3, 8, 9</xref>
        ], but focused on poetry. Such phonological patterns
have also been used for authorship attribution of literary work[
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ]. As far as
we know, the computational search for phonological parallelism in prose was not
studied before.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Methodology</title>
      <p>The computational identification of phonological parallelisms concerns the search
for repetitions of sounds along a literary work. Among possible sound elements,
for preliminary experiments, we chose the syllable as the unit of interest and
define this computational task as the search for sequences of repeated (phoneme)
syllables inside a sliding window containing a given number of words (window size),
ifltering sequences above a given length. Window size sets a minimum closeness
context as only syllables that co-occur inside the text window are considered
a repetition. Sequence length defines a minimum number of repetitions for a
sequence of the same syllable to be considered noteworthy. These parameters
guide a phoneme pairs index construction algorithm and a sequence construction
and filtering algorithm.</p>
      <p>
        The first step for the computational process is preprocessing the prose text to
tokenize words followed by a syllabification and grapheme to phoneme conversion
for Brazilian Portuguese, using the UFPAT2S tool[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. It is based on the set of
rules for the conversion and determination of stressed syllables [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], achieving an
accuracy of 97.44% and 98.58%, respectively, for the grapheme-phone convert
and the stress determination algorithm[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>After conversion, the phonetic version of the original text is obtained, with
words written as phoneme syllables (referred just as syllable from now on) in
SAMPA alphabet with syllabic divisions, for example the word 〈madeira〉 (wood
in Portuguese) is converted to /ma-’dej-ra/. The phonetic version of the text is
then processed by algorithms to obtain the final syllable sequences of interest.</p>
      <p>The computational task is algorithmically divided in two steps. The first
algorithm runs through the text with a sliding window of size S (corresponding
to S words) to find pairs of repeated syllables, constructing an index of same
syllable occurrences. This algorithm considers every syllable in the first word in
the window and looks for the first next occurrence of the same syllable inside the
window. After that, the window slides, dropping the first word and adding the
next word in text at the end of the window, and repeating the same search for
syllables for the new first word. The window continues sliding until it reaches the
end of the text. The output of this algorithm is an index of pairs of occurrences of
same syllables along the text, where each entry is an occurrence (syllable-position
tuple) pointing to the next occurrence of the same syllable.</p>
      <p>The following example illustrates the process of identifying pairs of repeated
syllables, for a window size of 3 words. The input sentence is converted to
phonological form with separated syllables. The output indicates the repeated
syllables (underlined) and the corresponding syllable-position tuples.</p>
      <p>Input: sob o mando do coronel Tamarindo, separada
da esquerda, dirigida pelo capita˜o Felipe Simo˜es</p>
      <p>⇓
Output: ’sob u ’ma∼ -du ’du ko-ro-’nEw ta-ma-’ri∼ -du se-pa-’ra-da
’da es-’keX-da dZi-ri-’Zi-da ’pe-lu ka-pi-’ta w fe-’li-pi</p>
      <p>(du,4),(du,5),(du,12),(da,16),(da,17),(da,20),(da,24)</p>
      <p>The second algorithm uses the index of pairs of syllable occurrences to
construct full sequences and then filters only those that are above the minimum
sequence parameter length L. Head occurrences, which start a sequence, are
identified as those that are not next occurrences to any other occurrence. From
the head occurrence, the algorithm constructs a sequence similarly to a linked
list, traversing the occurrences pointed as next ones until a next occurrence
is not found, thus ending the sequence. Only sequences with length equal or
greater than L are outputted at the end of this process. The final result of the
computational search is a list of sequences of repeated syllables along with the
position of each of them, based on the parameters provided.</p>
      <p>Using the output of the previous example as input, the following is an example
of the output obtained after constructing full sequences with minimum length of
4 occurrences. There were two possible sequences, with syllable /du/ and syllable
/da/, but the output highlights that only the second one was considered, as the
ifrst has length below minimum size.</p>
      <p>Input: ’sob u ’ma∼ -du ’du ko-ro-’nEw ta-ma-’ri∼ -du se-pa-’ra-da
’da es-’keX-da dZi-ri-’Zi-da ’pe-lu ka-pi-’ta w fe-’li-pi
(du,4),(du,5),(du,12),(da,16),(da,17),(da,20),(da,24)</p>
      <p>⇓
Output: sob o mando do coronel Tamarindo, separada
da esquerda, dirigida pelo capita˜o Felipe Simo˜es</p>
      <p>[(da,16),(da,17),(da,20),(da,24)]
3</p>
    </sec>
    <sec id="sec-3">
      <title>Results</title>
      <p>Initial results in our research were obtained by applying our computational search
process to three classic works of Brazilian literary prose: Macunıma´ a , Os Serto˜es,
and Triste Fim de Policarpo Quaresma. The selected works are some of the most
representative literary experiments in the transition between pre-modernism
and modernism in Brazil. The computational search for sequences of repeated
syllables is guided by the parameters S and L. Both influence the number of
sequences obtained as the final result, as shown in Table 1.</p>
      <p>Depending on parameter values, the computational method was able to identify
diferent numbers of sequences of repeated syllables. As window size grows, more
sequences are found, since occurrences would be farther away are considered.
On the other hand, as minimum sequence length increases, less sequences are
selected, once shorter ones are dropped. Comparing the literary works, there are
distinct absolute numbers of sequences identified for the same parameters, mainly
due the diference in total words in each one, with Macunaım´a having 43.665
words, Os Serto˜es, 159.070 words and Triste fim de Policarpo Quaresma , 66.869
words. Nevertheless, the relative percentage of sequences reveals that Os Serto˜es
and Triste Fim de Policarpo Quaresma have higher densities of phonological
parallelisms.</p>
      <p>Besides the total number of sequences in literary works, a quantitative analysis
of distribution of distinct repeated syllables among sequences is shown in Table
2, considering the gray line from Table 1. This configuration involves parameters
quite strict for sequences as only sequences with 5 syllable repetitions within
4 words are reported. There is a high concentration of sequences with certain
syllables. The greatest number of sequences involve the phoneme /a/ as an
isolated vowel syllable. Vowels are centers of syllables and often occur isolated in
syllables, but /a/ has a much higher frequency than other vowels. /a/ can also
be used as a singular definite article 〈a〉, but the other singular definite article,
〈o〉 /u/, does not have such high frequency. But there are also sequences with
consonants among the most frequent ones and diferent sequences can overlap in
the processed books.</p>
      <p>Collocations of sequences occur in the book. The following excerpt is an
example of such overlap of repeated syllable sequences, involving syllable /ma/
in word 11.595, syllable /u∼ / in word 11.597, and /ku/ in word 11.598, using
diferent colors to highlight the three sequences.</p>
      <p>“Maanape n˜ao queria jogar o mano mesmo, pegou desesperado em seis
cac¸as du ma vez um macuco um macaco um jacu uma jacutinga uma
picota e uma pia-coc¸a e atirou no ch˜ao gritando:”</p>
      <p>The /ma/ and /u∼ / have length of 6 occurrences and /ku/ sequence has
length of 5 occurrences, so both fullfi the length threshold of 5 repetitions. A
higher L value would drop of some of these sequences. The window had size of 4
words, allowing an occurrence in a first word to be connected to a occurrence
in the three words ahead. A smaller window size would break some of these
connections, breaking or shortening sequences. Changing these two parameters
allows analysis from diferent perspectives, more strictly or more loose.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Final Remarks</title>
      <p>This is a work in progress in the computational search and identification of
repeated syllable sequences in Brazilian Portuguese literary prose. Such sequences
can be seen as parallelisms at phonological level, that can be analyzed according
to diverse exploratory perspectives in Digital Humanities.</p>
      <p>The proposed computational process is guided by two parameters that vary
the final number of sequences obtained and further study is needed to characterize
and compare the sequences obtained with diferent configurations. Other sound
units (e.g. individual phonemes) and clusters, similarity criteria and tonicity
constraints will be addressed in future work.</p>
      <p>Preliminary results from computational identification of phonological
parallelism evidence a dense presence of repeated sequences in literary prose.
Nevertheless, more literary works will be evaluated, as well as ordinary prose as a control
group, considering other authors and other literary periods. In addition, other
descriptive perspectives of distant reading and close reading will be evaluated.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Abdul-Rahman</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lein</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Coles</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maguire</surname>
            , E., Meyer,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wynne</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Johnson</surname>
            ,
            <given-names>C.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Trefethen</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Rule-based visual mappings-with a case study on poetry visualization</article-title>
          .
          <source>In: Computer Graphics Forum</source>
          . vol.
          <volume>32</volume>
          , pp.
          <fpage>381</fpage>
          -
          <lpage>390</lpage>
          . Wiley Online Library (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Adam</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cable</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          : Alliteration. In: Greene,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Cushman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Cavanagh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Ramazani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Rouzer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Feinsod</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            ,
            <surname>Marno</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            ,
            <surname>Slessarev</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . (eds.) The Princeton Encyclopedia of Poetry and Poetics, p.
          <fpage>40</fpage>
          -
          <lpage>42</lpage>
          . Princeton University Press (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Benner</surname>
            ,
            <given-names>D.C.</given-names>
          </string-name>
          :
          <article-title>The sounds of the psalter: Computational analysis of soundplay</article-title>
          .
          <source>Literary and Linguistic Computing</source>
          <volume>29</volume>
          (
          <issue>3</issue>
          ),
          <fpage>361</fpage>
          -
          <lpage>378</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Costa</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Neto</surname>
          </string-name>
          , N.:
          <article-title>Free tools and resources for hmm-based brazilian portuguese speech synthesis</article-title>
          . In: Simari,
          <string-name>
            <surname>G.R.</surname>
          </string-name>
          , Ferme,´ E., Guteir´rez Segura,
          <string-name>
            <surname>F.</surname>
          </string-name>
          , Rodıgr´ uez Melquiades,
          <string-name>
            <surname>J.A</surname>
          </string-name>
          . (eds.)
          <source>Advances in Artificial Intelligence - IBERAMIA 2018</source>
          . pp.
          <fpage>367</fpage>
          -
          <lpage>379</lpage>
          . Springer International Publishing (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Ivanov</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Using alliteration in authorship attribution of historical texts</article-title>
          . In: International Conference on Text, Speech, and Dialogue. pp.
          <fpage>239</fpage>
          -
          <lpage>248</lpage>
          . Springer (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ivanov</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Learning patterns of assonance for authorship attribution of historical texts</article-title>
          . In: The Thirty-Second International Flairs Conference (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Jakobson</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pomorska</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          : Dialogues. MIT Press (
          <year>1988</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Kao</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jurafsky</surname>
            ,
            <given-names>D.:</given-names>
          </string-name>
          <article-title>A computational analysis of style, afect, and imagery in contemporary poetry</article-title>
          .
          <source>In: Proceedings of the NAACL-HLT 2012 workshop on computational linguistics for literature</source>
          . pp.
          <fpage>8</fpage>
          -
          <lpage>17</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>McCurdy</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Srikumar</surname>
          </string-name>
          , V., Meyer, M.:
          <article-title>Rhymedesign: A tool for analyzing sonic devices in poetry</article-title>
          .
          <source>In: Proceedings of the Fourth Workshop on Computational Linguistics for Literature</source>
          . pp.
          <fpage>12</fpage>
          -
          <lpage>22</lpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Silva</surname>
          </string-name>
          , D.C.,
          <string-name>
            <surname>de Lima</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maia</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Braga</surname>
          </string-name>
          , D., de Moraes, J.F.,
          <string-name>
            <surname>de Moraes</surname>
            ,
            <given-names>J.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Resende</surname>
            ,
            <given-names>F.G.</given-names>
          </string-name>
          :
          <article-title>A rule-based grapheme-phone converter and stress determination for brazilian portuguese natural language processing</article-title>
          .
          <source>In: 2006 International Telecommunications Symposium</source>
          . pp.
          <fpage>550</fpage>
          -
          <lpage>554</lpage>
          . IEEE (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>