<!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>Readability f or author profiling?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Lee Gillam</string-name>
          <email>l.gillam@surrey.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computing, University of Surrey</institution>
          ,
          <country country="UK">UK</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <abstract>
        <p>This paper briefly describes the approach taken to the Author Profiling task at PAN 13. It describes the simple features used, and the origins in thinking around text readability as a mechanism for identification, and the predictive model used which may have beneficially omitted classes, as well as offering commentary on the results obtained.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        The Author Profiling task was new to PAN2013, albeit with some relationship to
the PAN2012 cyberpredator task
        <xref ref-type="bibr" rid="ref4">(e.g. Vartapetiance and Gillam 2012)</xref>
        . The two
output features of interest for this task are age and gender, with only 10s, 20s and 30s
as suitable values for age, and male or female for gender, for a collection of English
and Spanish blogs and product reviews.
      </p>
      <p>Our approach is based on simple text readability characteristics, eschewing
linguistic processing, and some fairly straightforward assumptions. We achieved total
accuracy of 0.32 (8th position at time of writing – of 21, though with 64 registered) for
English, against the best accuracy overall of 0.389, and accuracy of 0.25 (13th) versus
best of 0.42 for Spanish. Notably, we achieved the fastest runtime overall of 615,347.</p>
      <p>In this short paper, we outline the approach taken at the University of Surrey to
Author Profiling at PAN 13. First, in section 2, we offer a brief overview of text
readability as provides the inspiration for our approach. In section 3, we briefly state
our simple approach. Section 4 shows results obtained, and Section 5 concludes with
considerations for future work.</p>
      <p>
        Elsewhere, we have published on text readability for authoring assistance
        <xref ref-type="bibr" rid="ref1 ref2 ref3">(Newbold and Gillam 2010a)</xref>
        , in relation to video annotation
        <xref ref-type="bibr" rid="ref1 ref2 ref3">(Newbold and Gillam
2010b)</xref>
        and for ranking in information retrieval with one of the forefathers of text
readability measures
        <xref ref-type="bibr" rid="ref1 ref2 ref3">(Newbold, McLaughlin and Gillam 2010)</xref>
        . We have presented
        <xref ref-type="bibr" rid="ref1 ref2 ref3">(Newbold and Gillam 2010b, Table II)</xref>
        , core characteristics of common measures of
text readability – namely, of Flesch, Kincaid, Fog, SMOG and ARI. In their
formulation, all use sentence length and either the number of characters per word,
number of syllables per word, or a count of the number of complex words. To
determine whether readability could be more broadly applied to author profiling, and
therefore whether more of our prior work might be of benefit to such a task in future,
we settled on a simple measurable combination for the distributions of sentence
lengths and word lengths in the texts – which would relate most closely with ARI. A
simply hypothesis, here, would be that longer words would be used with greater
frequency at higher ages, and that females might write in longer sentences than males.
      </p>
      <p>Results obtained do indicate greater scope for exploration of text readability as a
proxy for author age and gender, albeit with a large degree of uncertainty over how
far one could push such an approach or in which direction. The approach used is
described briefly in the next section.</p>
    </sec>
    <sec id="sec-2">
      <title>3 Author Profiles</title>
      <p>Our approach, coded in Python – and so potentially with scope for better speed –
first removes all markup, and then uses “.”, “!” and “?” characters as sentence
delimiters. For sentences of more than 35 characters, we get a simple approximation
of word length as character length divided by 6, and collect distributions of both
sentence lengths and word lengths for the text.</p>
      <p>From the two collected distributions, we produce one number each for sentence
length and word length by summing the numbers of sentences/words seen at 50% and
90% (i.e. approximating average sentence/word length plus a value of tendency
towards using long sentences and words). Clearly such an approach is not likely to be
reliable when just a few sentences are involved, but no further analysis has yet been
done to ascertain accuracy as sentence number increases.</p>
      <p>To determine rules by which to label, we made use of the popular Weka software
from the University of Waikato, and in particular the J48 implementation of the C4.5
decision tree. We were looking for a simple tree to offer good generalization
(complex trees, suggesting overfitting, would not be suitable).</p>
      <p>It was noticeable from this that training data were not evenly distributed, with data
for 30s age group tending to dominate and hence to bias rules produced, The
somewhat weak quantity of 10s data tends to explain why the label does not get
produced in the resulting rule – and if such data imbalance is carried into testing data
would suggest something else about a suitable baseline.</p>
      <p>Primarily through trial and error, it was clear that treating age and gender
separately produced the simplest tree(s). The resulting rules are:</p>
      <p>AGE:
if( word &lt;= 10): return "20s"
else: if( sentence &lt;= 108): return "30s"
else: if( word &lt;= 11): return "20s"</p>
      <p>else: return "30s"
GENDER:
if( sentence &lt;= 28):
if( word &lt;= 18): return "male"
else:
if( sentence &lt; 17):
if( word &lt;= 21): return "female"
else: return "male"
else:</p>
      <p>return "male"
else:
if(word &lt;= 11): return "male"
else: return "female"</p>
      <p>We did not differentiate English and Spanish, so variation in results across these
collections may suggest something about the need to do so in future – and
consequently, for our own interests, for Spanish readability analysis.</p>
    </sec>
    <sec id="sec-3">
      <title>4 Results</title>
      <p>The key numbers of interest relate to accuracy. Our approach, which eschews
linguistic processing, achieves total accuracy of 0.32 (8th position at time of writing –
21 participants) for English, against the best accuracy overall of 0.389, and accuracy
of 0.25 (13th) versus best of 0.42 for Spanish. Notably, we achieved the fastest
runtime overall of 615,347 milliseconds for the entire collection (next fastest was
1,729,618ms).</p>
    </sec>
    <sec id="sec-4">
      <title>5 Conclusions</title>
      <p>Although only 8th, the simplicity of the approach suggests that there may be greater
scope for assessing the use of more complex readability approaches in future, of the
kinds we have covered in several previous papers. However, it is not certain at the
time of writing how much of a part is played by any imbalances in data presented
since data characteristics are not available. Baseline figures are considered as 1/3 for
age and 1/2 for gender. However, if 30s data were dominant, and severely so in
contrast to 10s, then simply selecting 30s each time could produce quite good figures
for accuracy. For the approach considered here, we ended up never labeling 10s, and
so would consider our own baseline at 0.25 overall (in contrast to what should be
0.167 if all were equal). Without the data, it is difficult to tell whether 0.32 is a good
score, or just an artifact of these rules applied to an unbalanced set of data.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Newbold</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Gillam</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <year>2010a</year>
          ,
          <source>The Linguistics of Readability: The Next Step for Word Processing. Workshop on Computational Linguistics and Writing: Writing Processes and Authoring Aids (CL&amp;W</source>
          <year>2010</year>
          ). At NAACL-HTL
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Newbold</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Gillam</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <article-title>2010b, Text Readability within Video Retrieval Applications: A Study On CCTV Analysis</article-title>
          .
          <source>Journal of Multimedia</source>
          <volume>5</volume>
          (
          <issue>2</issue>
          ):
          <fpage>123</fpage>
          -
          <lpage>141</lpage>
          (Special Issue on Visual Information Engineering), Academy Publisher.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Newbold</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McLaughlin</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          <article-title>and</article-title>
          <string-name>
            <surname>Gillam</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <year>2010</year>
          ,
          <article-title>Rank by Readability: Document Weighting for Information Retrieval</article-title>
          .
          <source>Information Retrieval Facility Conference</source>
          <year>2010</year>
          . Available from Springer LNCS 6107
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>Vartapetiance</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Gillam</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <year>2012</year>
          ,
          <article-title>Quite Simple Approaches for Authorship Attribution, Intrinsic Plagiarism Detection and Sexual Predator Identification</article-title>
          .
          <source>Proceedings of the 4th PAN workshop</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>