<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="562"/><title>Cooooooooooooooollllllllllllll!!!!!!!!!!!!!! Using Word Lengthening to Detect Sentiment in Microblogs</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 562-570, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Brody" givenname="Samuel"><org  name="Rutgers University" country="USA" city="New Brunswick"/></author><author surname="Diakopoulos" givenname="Nicholas"><org  name="Rutgers University" country="USA" city="New Brunswick"/></author></firstpageheader><frontmatter><p><b>Cooooooooooooooollllimmm!!!!!!!!!!!!!! Using Word Lengthening to Detect Sentiment in Microblogs</b></p><p><b>Samuel Brody</b></p><p>School of Communication and Information Rutgers University</p><p>sdbrody@gmail.com</p><p><b>Nicholas Diakopoulos</b></p><p>diakop@rutgers.edu</p></frontmatter><abstract>We present an automatic method which lever­ages word lengthening to adapt a sentiment lexicon specifically for Twitter and similar so­cial messaging networks. The contributions of the paper are as follows. First, we call at­tention to lengthening as a widespread phe­nomenon in microblogs and social messag­ing, and demonstrate the importance of han­dling it correctly. We then show that lengthen­ing is strongly associated with subjectivity and sentiment. Finally, we present an automatic method which leverages this association to de­tect domain-specific sentiment- and emotion-bearing words. We evaluate our method by comparison to human judgments, and analyze its strengths and weaknesses. Our results are of interest to anyone analyzing sentiment in microblogs and social networks, whether for research or commercial purposes. </abstract></header><body><section number="1" title="Introduction"><p>Recently, there has been a surge of interest in sen­timent analysis of Twitter messages. Many re­searchers (e.g., Bollen et al. 2011; Kivran-Swaine and Naaman 2011) are interested in studying struc­ture and interactions in social networks, where senti­ment can play an important role. Others use Twitter as a barometer for public mood and opinion in di­verse areas such as entertainment, politics and eco­nomics. For example, Diakopoulos and Shamma (2010) use Twitter messages posted in conjunction with the live presidential debate between Barack Obama and John McCain to gauge public opinion, Bollen et al. (2010) measure public mood on Twitter and use it to predict upcoming stock market fluctuations, and O'Connor et al. (2010) connect pub­lic opinion data from polls to sentiment expressed in Twitter messages along a timeline.</p><p>A prerequisite of all such research is an effec­tive method for measuring the sentiment of a post or <i>tweet. </i>Due to the extremely informal nature of the medium, and the length restriction<footnote anchor="1"/>, the lan­guage and jargon which is used in Twitter varies sig­nificantly from that of commonly studied text cor­pora. In addition, Twitter is a quickly evolving domain, and new terms are constantly being intro­duced. These factors pose difficulties to methods designed for conventional domains, such as news. One solution is to use human annotation. For exam­ple, Kivran-Swaine and Naaman (2011) use manual coding of tweets in several emotion categories (e.g., joy, sadness) for their research. Diakopoulos and Shamma (2010) use crowd sourcing via Amazon's Mechanical Turk. Manual encoding usually offers a deeper understanding and correspondingly higher accuracy than shallow automatic methods. However, it is expensive and labor intensive and cannot be ap­plied in real time. Crowd-sourcing carries additional caveats of its own, such as issues of annotator exper­tise and reliability (see Diakopoulos and Shamma 2010).</p><p>The automatic approach to sentiment analysis is commonly used for processing data from social net­works and microblogs, where there is often a huge quantity of information and a need for low latency. Many automatic approaches (including all those used in the work mentioned above) have at their core a sentiment lexicon, containing a list of words labeled with specific associated emotions (joy, hap­piness) or a polarity value (positive, neutral, nega­tive).<page local="2" global="563"/> The overall sentiment of a piece of text is cal­culated as a function of the labels of the component words. Because Twitter messages are short, shal­low approaches are sometimes considered sufficient (Bermingham and Smeaton, 2010). There are also approaches that use deeper machine learning tech­niques to train sentiment classifiers on examples that have been labeled for sentiment, either manually or automatically, as described above. Recent examples of this approach are Barbosa and Feng (2010) and Pak and Paroubek (2010).</p><footnote label="1">Messages in Twitter are limited to 140 characters, for com­patibility with SMS messaging</footnote><p>Most established sentiment lexicons (e.g., Wilson et al. 2005, see Section 5) were created for a gen­eral domain, and suffer from limited coverage and inaccuracies when applied to the highly informal do­main of social networks communication. By cre­ating a sentiment lexicon which is specifically tai­lored to the microblogging domain, or adapting an existing one, we can expect to achieve higher accu­racy and increased coverage. Recent work in this area includes Velikovich et al. (2010), who devel­oped a method for automatically deriving an exten­sive sentiment lexicon from the web as a whole. The resulting lexicon has greatly increased cover­age compared to existing dictionaries and can handle spelling errors and web-specific jargon. Bollen et al. (2010) expand an existing well-vetted psychometric instrument - Profile of Mood States (POMS) (Mc-Nair et al., 1971) that associates terms with moods (e.g. calm, happy). The authors use co-occurrence information from the Google n-gram corpus (Brants and Franz, 2006) to enlarge the original list of 72 terms to 964. They use this expanded emotion lexi­con (named GPOS) in conjunction with the lexicon of Wilson et al. (2005) to estimate public mood from Twitter posts<footnote anchor="2"/>.</p><p>The method we present in this paper leverages a phenomenon that is specific to informal social com­munication to enable the extension of an existing lexicon in a domain specific manner.</p><footnote label="2">Although the authors state that all data and methods will be made available on a public website, it was not present at the time of the writing of this article.</footnote></section><section number="2" title="Methodology"><p>Prosodic indicators (such as high pitch, prolonged duration, intensity, vowel quality, etc.) have long been know (Bolinger, 1965) as ways for a speaker to emphasize or accent an important word. The ways in which they are used in speech are the subject of ongoing linguistic research (see, for example, Cal-houn 2010). In written text, many of these indica­tors are lost. However, there exist some orthographic conventions which are used to mark or substitute for prosody, including punctuation and typographic styling (italic, bold, and underlined text). In purely text-based domains, such as Twitter, styling is not always available, and is replaced by capitalization or other conventions (e.g., enclosing the word in as­terisks). Additionally, the informal nature of the do­main leads to an orthographic style which is much closer to the spoken form than in other, more formal, domains. In this work, we hypothesize that the com­monly observed phenomenon of lengthening words by repeating letters is a substitute for prosodic em­phasis (increased duration or change of pitch). As such, it can be used as an indicator of important words and, in particular, ones that bear strong in­dication of sentiment.</p><p>Our experiments are designed to analyze the phe­nomenon of lengthening and its implications to sen­timent detection. First, in Experiment I, we show the pervasiveness of the phenomenon in our dataset, and measure the potential gains in coverage that can be achieved by considering lengthening when pro­cessing Twitter data. Experiment II substantiates the claim that word lengthening is not arbitrary, and is used for emphasis of important words, including those conveying sentiment and emotion. In the first part of Experiment III we demonstrate the implica­tions of this connection for the purpose of sentiment detection using an existing sentiment lexicon. In the second part, we present an unsupervised method for using the lengthening phenomenon to expand an existing sentiment lexicon and tailor it to our do­main. We evaluate the method through compari­son to human judgments, analyze our results, and demonstrate some of the benefits of our automatic method.</p><page local="3" global="564"/><p>1. For every word in the vocabulary, extract the condensed form, where sequences of a repeated letter are replaced with a single instance of that letter.</p><p>E.g., <i>niiiice — nice, realllly — realy ...</i></p><p>2. Create sets of words sharing the same condensed form.</p><p>E.g., {nice, <i>niiice, niccccceee...}, {realy, really, realllly,...} ...</i></p><p>3. Remove sets which do not contain at least one repeat of length three. E.g.,<i>{committee, committe, commitee}</i></p><p>4. Find the most frequently occurring form in the group, and mark it as the canonical form. E.g., <b>{nice, </b><i>niiice, niccccceee...}, {realy, </i><b>really, </b><i>realllly,...} ...</i></p><figure caption="Figure 1: Procedure for detecting lengthened words and associating them with a canonical form."></figure><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">3 Data</doubt><p>Half a million tweets were sampled from the Twit­ter Streaming API on March 9th 2011. The tweets were sampled to cover a diverse geographic distri­bution within the U.S. such that regional variation in language use should not bias the data. Some tweets were also sampled from Britain to provide a more diverse sampling of English. We restricted our sam­ple to tweets from accounts which indicated their primary language as English. However, there may be some foreign language messages in our dataset, since multi-lingual users may tweet in other lan­guages even though their account is marked as "En­glish".</p><p>The tweets were tokenized and converted to lower-case. Punctuation, as well as links, hash-tags, and username mentions were removed. The resulting corpus consists of approximately 6.5 mil­lion words, with a vocabulary of 22 thousand words occurring 10 times or more.</p></section><section number="4" title="Experiment I - Detection"><p>To detect and analyze lengthened words, we employ the procedure described in Figure 1. We find sets of words in our data which share a common form and differ only in the number of times each letter is repeated (Steps 1 &amp; 2). In Step 3 we remove sets where all the different forms are likely to be the re­sult of misspelling, rather than lengthening. Finally, in Step 4, we associate all the forms in a single set with a canonical form, which is the most common one observed in the data. The procedure resulted in 4,359 sets of size &gt; 1.</p><p>To reduce noise resulting from typos and mis­spellings, we do not consider words containing non-alphabetic characters, or sets where the canonical form is a single character or occurs less than 10 times. This left us with 3,727 sets.</p><p><b>Analysis </b>Table 1 lists the canonical forms of the 20 largest sets in our list (in terms of the number of variations). Most of the examples are used to ex­press emotion or emphasis. Onomatopoeic words expressing emotion (e.g., <i>ow, ugh, yay) </i>are often lengthened and, for some, the combined frequency of the different lengthened forms is actually greater than that of the canonical (single most frequent) one.</p><p>Lengthening is a common phenomenon in our dataset. Out of half-a-million tweets, containing roughly 6.5 million words, our procedure identifies 108,762 word occurrences which are lengthenings of a canonical form. These words occur in 87,187 tweets (17.44% or approximately one out of every six, on average). The wide-spread use of length­ening is surprising in light of the length restriction of Twitter. Grinter and Eldridge (2003) point out several conventions that are used in text messages specifically to deal with this restriction. The fact that lengthening is used in spite of the need for brevity suggests that it conveys important information.</p><p><b>Canonical Assumption </b>We validate the assump­tion that the most frequent form in the set is the canonical form by examining sets containing one or more word forms that were identified in a standard<page local="4" global="565"/></p><p>Table 1: The canonical forms of the 20 largest sets (in terms of cardinality), with the number of occurrences of the canonical and non-canonical forms.</p><p>English dictionary<footnote anchor="3"/>. This was the case for 2,092 of the sets (56.13%). Of these, in only 55 (2.63%) the most frequent form was not recognized by the dic­tionary. This indicates that the strategy of choosing the most frequent form as the canonical one is reli­able and highly accurate (&gt; 97%).</p><p><b>Implications for NLP </b>To examine the effects of lengthening on analyzing Twitter data, we look at the difference in coverage of a standard English dic­tionary when we explicitly handle lengthened words by mapping them to the canonical form. Cov­erage with a standard dictionary is important for many NLP applications, such as information re­trieval, translation, part-of-speech tagging and pars­ing. The canonical form for 2,037 word-sets are identified by our dictionary. We searched for oc­currences of these words which were lengthened by two or more characters, meaning they would not be identified using standard lemmatization methods or spell-correction techniques that are based on edit distance. We detected 25,101 occurrences of these, appearing in 22,064 (4.4%) tweets. This implies that a lengthening-aware stemming method can be used to increase coverage substantially.</p></section><section number="5" title="Experiment II - Relation to Sentiment"><p>At the beginning of Section 2 we presented the hy­pothesis that lengthening represents a textual substi­tute for prosodic indicators in speech. As such, it is not used arbitrarily, but rather applied to subjective words to strengthen the sentiment or emotion they convey. The examples presented in Table 1 in the previous section appear to support this hypothesis. In this section we wish to provide experimental evi­dence for our hypothesis, by demonstrating a signif­icant degree of association between lengthening and subjectivity.</p><p>For this purpose we use an existing sentiment lex­icon (Wilson et al., 2005), which is commonly used in the literature (see Section 1) and is at the core of OpinionFinder<footnote anchor="4"/>, a popular sentiment analysis tool designed to determine opinion in a general domain. The lexicon provides a list of subjective words, each annotated with its degree of subjectivity (strongly subjective, weakly subjective), as well as its sen­timent polarity (positive, negative, or neutral). In these experiments, we use the presence of a word (canonical form) in the lexicon as an indicator of subjectivity. It should be noted that the reverse is not true, i.e., the fact that a word is absent from the lexicon does not indicate it is objective.</p><p>As a measure of tendency to lengthen a word, we look at the number of distinct forms of that word ap­pearing in our dataset (the cardinality of the set to which it belongs). We group the words according to this statistic, and compare to the vocabulary of our dataset (all words appearing in our data ten times or more, and consisting of two or more alphabetic characters, see Section 4). Figure 2 shows the per­centage of subjective words (those in the lexicon) in each of the groups. As noted previously, this is a lower bound, since it is possible (in fact, very likely) that other words in the group are subjective, despite being absent from the lexicon. The graph shows a clear trend - the more lengthening forms a word has, the more likely it is to be subjective (as measured by the percentage of words in the lexicon).<page local="5" global="566"/></p><footnote label="3">We use the standard dictionary for U.S. English included in the Aspell Unix utility.</footnote><footnote label="4">http://www.cs.pitt.edu/mpqa/ opinionfinderrelease/</footnote><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Can. Form</p></td><td class="cell"><p>Card.</p></td><td class="cell"><p>#Can.</p></td><td class="cell"><p># Non-Can.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>nice</p></td><td class="cell"><p>76</p></td><td class="cell"><p>3847</p></td><td class="cell"><p>348</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ugh</p></td><td class="cell"><p>75</p></td><td class="cell"><p>1912</p></td><td class="cell"><p>1057</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>lmao</p></td><td class="cell"><p>70</p></td><td class="cell"><p>10085</p></td><td class="cell"><p>3727</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>lmfao</p></td><td class="cell"><p>67</p></td><td class="cell"><p>2615</p></td><td class="cell"><p>1619</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ah</p></td><td class="cell"><p>61</p></td><td class="cell"><p>767</p></td><td class="cell"><p>1603</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>love</p></td><td class="cell"><p>59</p></td><td class="cell"><p>16360</p></td><td class="cell"><p>359</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>crazy</p></td><td class="cell"><p>59</p></td><td class="cell"><p>3530</p></td><td class="cell"><p>253</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>yeah</p></td><td class="cell"><p>57</p></td><td class="cell"><p>4562</p></td><td class="cell"><p>373</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>sheesh</p></td><td class="cell"><p>56</p></td><td class="cell"><p>247</p></td><td class="cell"><p>131</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>damn</p></td><td class="cell"><p>52</p></td><td class="cell"><p>5706</p></td><td class="cell"><p>299</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>shit</p></td><td class="cell"><p>51</p></td><td class="cell"><p>10332</p></td><td class="cell"><p>372</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>really</p></td><td class="cell"><p>51</p></td><td class="cell"><p>9142</p></td><td class="cell"><p>142</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>oh</p></td><td class="cell"><p>51</p></td><td class="cell"><p>7114</p></td><td class="cell"><p>1617</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>yay</p></td><td class="cell"><p>45</p></td><td class="cell"><p>1370</p></td><td class="cell"><p>375</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>wow</p></td><td class="cell"><p>45</p></td><td class="cell"><p>3767</p></td><td class="cell"><p>223</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>good</p></td><td class="cell"><p>45</p></td><td class="cell"><p>21042</p></td><td class="cell"><p>3171</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ow</p></td><td class="cell"><p>44</p></td><td class="cell"><p>116</p></td><td class="cell"><p>499</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>mad</p></td><td class="cell"><p>44</p></td><td class="cell"><p>3627</p></td><td class="cell"><p>827</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>hey</p></td><td class="cell"><p>44</p></td><td class="cell"><p>4669</p></td><td class="cell"><p>445</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>please</p></td><td class="cell"><p>43</p></td><td class="cell"><p>4014</p></td><td class="cell"><p>157</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>The reverse also holds - if a word is used to con­vey sentiment, it is more likely to be lengthened. We can verify this by calculating the average number of distinct forms for words in our data that are sub­jective and comparing to the rest. This calculation yields an average of 2.41 forms for words appearing in our sentiment lexicon (our proxy for subjectiv­ity), compared to an average of 1.79 for those that aren't<footnote anchor="5"/>. This difference is statistically significant at <i>p &lt; </i>0.01%, using a student t-test.</p><p>The lexicon we use was designed for a general domain, and suffers from limited coverage (see be­low) and inaccuracies (see O'Connor et al. 2010 and below Section 6.2 for examples), due to the domain shift. The sentiment lexicon contains 6,878 words, but only 4,939 occur in our data, and only 2,446 ap­pear more than 10 times. Of those appearing in our data, only 485 words (7% of the lexicon vocabulary) are lengthened (the bar for group 2+ in Figure 2), but these are extremely salient. They encompass 701,607 instances (79% of total instances of words from the lexicon), and 339,895 tweets. This pro­vides further evidence that lengthening is used with salient sentiment words.</p><p>These results also demonstrates the limitations of using a sentiment lexicon which is not tailored to the domain. Only a small fraction of the lexicon is represented in our data, and it is likely that there are many sentiment words that are commonly used but are absent from it. We address this issue in the next section.</p></section><section number="6" title="Experiment III - Adapting the Sentiment Lexicon"><p>The previous experiment showed the connection be­tween lengthening and sentiment-bearing words. It also demonstrated some of the shortcomings of a lexicon which is not specifically tailored to our do­main. There are two steps we can take to use the lengthening phenomenon to adapt an existing sentiment lexicon. The first of these is simply to take lengthening into account when identifying sentiment-bearing words in our corpus. The second</p><footnote label="5">This, too, is a conservative estimate, since the later group also includes subjective words, as mentioned.</footnote><doubt alpha="2.9" length="68" tooSmall="False" monospace="0.0">30% -------------------------------------------------------------rn-</doubt><doubt alpha="5.2" length="58" tooSmall="False" monospace="0.0">25%------------------------------------------------rT"1~T"</doubt><doubt alpha="1.3" length="79" tooSmall="False" monospace="0.0">20% -----------------------------1—r - -      - - -     - - -        -      - -</doubt><doubt alpha="4.2" length="48" tooSmall="False" monospace="0.0">15%----------------py- -    ■■■   -■■    ■-■ -■■</doubt><p>10% - .....</p><doubt alpha="0.0" length="25" tooSmall="False" monospace="0.0">5%--■-■-■■■--■■■-■■■-■-■■</doubt><footnote label="0">%    All   2+   3+   4+   5+   6+   7+   8+   9+ 10+ Number of Variations</footnote><p>Figure 2: The percentage of subjective word-sets (those whose canonical form appears in the lexicon) as a func­tion of cardinality (number of lengthening variations). The accompanying table provides the total number of sets in each cardinality group.</p><p>is to exploit the connection between lengthening and sentiment to expand the lexicon itself.</p><subsection number="6.1" title="Expanding Coverage of Existing Words"><p>We can assess the effect of specifically consider­ing lengthening in our domain by measuring the increase of coverage of the existing sentiment lex­icon. Similarly to Experiment I (Section 4), we searched for occurrences of words from the lexi­con which were lengthened by two or more charac­ters, and would therefore not be detected using edit-distance. We found 12,105 instances, occurring in 11,439 tweets (2.29% of the total). This increase in coverage is relatively small<footnote anchor="6"/>, but comes at almost no cost, by simply considering lengthening in the anal­ysis.</p><p>A much greater benefit of lengthening, however, results from using it as an aid in expanding the sen­timent lexicon and detecting new sentiment-bearing words. This is the subject of the following section.</p></subsection><subsection number="6.2" title="Expanding the Sentiment Vocabulary"><p>In Experiment II (Section 5) we showed that length­ening is strongly associated with sentiment. There­fore, words which are lengthened can provide us with good candidates for inclusion in the lexicon. We can employ existing sentiment-detection methods to decide which candidates to include, and de­termine their polarity.<page local="6" global="567"/></p><footnote label="6">Note that almost half of the increase in coverage calculated in Experiment I (Section 4) comes from subjective words!</footnote><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>All</p></td><td class="cell"><p>2+</p></td><td class="cell"><p>3+</p></td><td class="cell"><p>4+</p></td><td class="cell"><p>5+</p></td><td class="cell"><p>6+</p></td><td class="cell"><p>7+</p></td><td class="cell"><p>8+</p></td><td class="cell"><p>9+</p></td><td class="cell"><p>10+</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>18,817</p></td><td class="cell"><p>3,727</p></td><td class="cell"><p>2,451</p></td><td class="cell"><p>1,540</p></td><td class="cell"><p>1,077</p></td><td class="cell"><p>778</p></td><td class="cell"><p>615</p></td><td class="cell"><p>487</p></td><td class="cell"><p>406</p></td><td class="cell"><p>335</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p><b>Choosing a Candidate Set </b>The first step in ex­panding the lexicon is to choose a set of candidate words for inclusion. For this purpose we start with words that have 5 or more distinct forms. There are 1,077 of these, of which only 217 (20.15%) are currently in our lexicon (see Figure 2). Since we are looking for commonly lengthened words, we disregard those where the combined frequency of the non-canonical forms is less than 1% that of the canonical one. We also remove stop words, even though some are often lengthened for emphasis (e.g., <i>me, and, so), </i>since they are too frequent, and introduce many spurious edges in our co-occurrence graph. Finally, we filter words based on weight, as described below. This leaves us with 720 candidate words.</p><p><b>Graph Approach </b>We examine two methods for sentiment detection - that of Brody and Elhadad (2010) for detecting sentiment in reviews, and that of Velikovich et al. (2010) for finding sentiment terms in a giga-scale web corpus. Both of these employ a graph-based approach, where candidate terms are nodes, and sentiments is propagated from a set of seed words of known sentiment polarity. We calcu­lated the frequency in our corpus of all strongly pos­itive and strongly negative words in the Wilson et al. (2005) lexicon, and chose the 100 most frequent in each category as our seed sets.</p><p><b>Graph Construction </b>Brody and Elhadad (2010) considered all frequent adjectives as candidates and weighted the edge between two adjectives by a func­tion of the number of times they both modified a single noun. Velikovich et al. (2010) constructed a graph where the nodes were 20 million candidate words or phrases, selected using a set of heuristics including frequency and mutual information ofword boundaries. Context vectors were constructed for each candidate from all its mentions in a corpus of 4 billion documents, and the edge between two can­didates was weighted by the cosine similarity be­tween their context vectors.</p><p>Due to the nature of the domain, which is highly informal and unstructured, accurate parsing is dif­ficult. Therefore we cannot employ the exact construction method of Brody and Elhadad (2010). On the other hand, the method of Velikovich et al. (2010) is based on huge amounts of data, and takes advantage of the abundance of contextual informa­tion available in full documents, whereas our do­main is closer to that of Brody and Elhadad (2010), who dealt with a small number of candidates and short documents typical to online reviews. There­fore, we adapt their construction method. We con­sider all our candidates words as nodes, along with the words in our positive and negative seed sets. As a proxy for syntactic relationship, edges are weighted as a function of the number of times two words oc­curred within a three-word window of each other in our dataset. We remove nodes whose neighboring edges have a combined weight of less than 20, mean­ing they participate in relatively few co-occurrence relations with the other words in the graph.</p><p><b>Algorithm </b>Once the graph is constructed, we can use either of the propagation algorithms of Brody and Elhadad (2010) and Velikovich et al. (2010), which we will denote Reviews and Web, respec­tively. The Reviews propagation method is based on Zhu and Ghahramani (2002). The words in the posi­tive and negative seed groups are assigned a polarity score of 1 and 0, respectively. All the rest start with a score of 0.5. Then, an update step is repeated. In update iteration t, for each word x that is <i>not in the seed, </i>the following update rule is applied:</p><doubt alpha="45.5" length="22" tooSmall="False" monospace="0.0">ZyeN(x)w(y,x) • p*1(y)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">Sy€N (x)w(y,x)</doubt><p>Where p* (x) is the polarity of word x at step t, <i>N (x) </i>is the set of the neighbors of x, and w(y, <i>x) </i>is the weight of the edge connecting x and y. Following Brody and Elhadad (2010), we set this weight to be 1 + <i>log(#co(y, </i>x)), where #co(y, x) is the number of times y and x co-occurred within a three-word window. The update step is repeated to convergence.</p><p>Velikovich et al. (2010) employed a different label propagation method, as described in Fig­ure 3. Rather than relying on diffusion along the whole graph, this method considers only the sin­gle strongest path between each candidate and each seed word. In their paper, the authors claim that their algorithm is more suitable than that of Zhu and Ghahramani (2002) to a web-based dataset, which<page local="7" global="568"/></p><doubt alpha="48.0" length="25" tooSmall="False" monospace="0.0">Input:G = (V,E),wijg[0,1]</doubt><doubt alpha="59.7" length="77" tooSmall="False" monospace="0.0">P, N, 7gR,TgNOutput:     pol,G R|VIInitialize:   pol^, pol+, pol-= 0 for alli</doubt><doubt alpha="64.0" length="25" tooSmall="False" monospace="0.0">pol+ = 1.0 for allvigPand</doubt><doubt alpha="59.1" length="22" tooSmall="False" monospace="0.0">pol-= 1.0 for allViG N</doubt><doubt alpha="62.2" length="45" tooSmall="False" monospace="0.0">1:aij= 0 for alli=j, aii= 1 for alli2:forViGP</doubt><doubt alpha="33.3" length="21" tooSmall="False" monospace="0.0">3:F={v,}4:fort: 1...T</doubt><p>5:       <b>for </b>(vk, v<b>j</b>) G E such that vk G F</p><doubt alpha="65.2" length="23" tooSmall="False" monospace="0.0">6:aij=max(aij,aik•wk,j)</doubt><p>F = F U{V<b>j</b>} 7: <b>for </b><i>V</i><i>j </i><b><i>g </i></b><i>V</i></p><doubt alpha="60.8" length="125" tooSmall="False" monospace="0.0">9:Repeat steps 1 8 usingNto compute pol10:ß= £,pol+/£,pol-11:poli= pol+— ßpol-, for alli12:if |poli|&lt;ythen poli= 0.0 for alli</doubt><p>Figure 3: Web algorithm from Velikovich et al. (2010). P and N are the positive and negative seed sets, respec­tively, wj are the weights, and T and 7 are parameters<footnote anchor="9"/>.</p><p>contained many dense subgraphs and unreliable as­sociations based only on co-occurrence statistics. We ran both algorithms in our experiment<footnote anchor="7"/>, and compared the results.</p><p><b>Evaluation </b>We evaluated the output of the algo­rithms by comparison to human judgments. For words appearing in the sentiment lexicon, we used the polarity label provided. For the rest, similarly to Brody and Elhadad (2010), we asked volunteers to rate the words on a five-point scale: <i>strongly-negative, weakly-negative, neutral, weakly-positive, </i>or <i>strongly-positive. </i>We also provided a <i>N/A </i>option if the meaning of the word was unknown. Each word was rated by two volunteers. Words which were la­beled <i>N/A </i>by one or more annotators were consid­ered <i>unknown. </i>For the rest, exact inter-rater agree-</p><footnote label="7">We normalize the weights described above when using the Web algorithm.</footnote><footnote label="9">In Velikovich et al. (2010), the parameters t and 7 were tuned on a held out dataset. Since our graphs are comparatively small, we do not need to limit the path length T in our search. We do not use the threshold 7, but rather employ a simple cutoff of the top 50 words.</footnote><p>Table 2: Evaluation of the top 50 positive and negative words retrieved by the two algorithms through compari­son to human judgment.</p><p>Table 3: Top fifteen negative and positive words for the algorithms of Brody and Elhadad (2010) (Reviews) and Velikovich et al. (2010) (Web).</p><p>ment was 67.6%, but rose to 93% when considering adjacent ratings as equivalent<footnote anchor="10"/>. This is compara­ble with the agreement reported by Brody and El-hadad (2010). We assigned values 1 (strongly nega­tive) to 5 (strongly positive) to the ratings, and cal­culated the average between the two ratings for each word. Words with an average rating of 3 were con­sidered neutral, and those with lower and higher rat­ings were considered negative and positive, respec­tively.</p><p><b>Results </b>Table 2 shows the distribution of the hu­man labels among the top 50 most positive and most negative words as determined by the two algorithms. Table 3 lists the top 15 of these as examples.</p><footnote label="10">Cohen's Kappa k = 0.853</footnote><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Human Judgment Pos.   Neg.   Neu. Unk.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>, Pos. Web</p><p>Neg.</p></td><td class="cell"><p>18      2       26 2 8       19      17 8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>D   . Pos.</p><p>Reviews</p><p>Neg.</p></td><td class="cell"><p>21       6       21 2 9       14      11 16</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Web</p></td><td class="cell"><p></p></td><td class="cell"><p>Reviews</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>pos.</p></td><td class="cell"><p>neg.</p></td><td class="cell"><p>pos.</p></td><td class="cell"><p>neg.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>see</p></td><td class="cell"><p>shit</p></td><td class="cell"><p></p></td><td class="cell"><p>kidding</p></td><td class="cell"><p>rell</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>win</p></td><td class="cell"><p>niggas</p></td><td class="cell"><p></p></td><td class="cell"><p>justin</p></td><td class="cell"><p>whore</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>way</p></td><td class="cell"><p>dis</p></td><td class="cell"><p></p></td><td class="cell"><p>win</p></td><td class="cell"><p>rocks</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>gotta</p></td><td class="cell"><p>gettin</p></td><td class="cell"><p></p></td><td class="cell"><p>feel</p></td><td class="cell"><p>ugg</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>summer</p></td><td class="cell"><p>smh</p></td><td class="cell"><p></p></td><td class="cell"><p>finale</p></td><td class="cell"><p>naw</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>lets</p></td><td class="cell"><p>tight</p></td><td class="cell"><p></p></td><td class="cell"><p>totally</p></td><td class="cell"><p>yea</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>haha</p></td><td class="cell"><p>fuckin</p></td><td class="cell"><p></p></td><td class="cell"><p>awh</p></td><td class="cell"><p>headache</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>birthday</p></td><td class="cell"><p>fuck</p></td><td class="cell"><p></p></td><td class="cell"><p>boys</p></td><td class="cell"><p>whack</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>tomorrow</p></td><td class="cell"><p>sick</p></td><td class="cell"><p></p></td><td class="cell"><p>pls</p></td><td class="cell"><p>yuck</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ever</p></td><td class="cell"><p>holy</p></td><td class="cell"><p></p></td><td class="cell"><p>ever</p></td><td class="cell"><p>shawty</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>school</p></td><td class="cell"><p>smfh</p></td><td class="cell"><p></p></td><td class="cell"><p>yer</p></td><td class="cell"><p>yeah</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>peace</p></td><td class="cell"><p>outta</p></td><td class="cell"><p></p></td><td class="cell"><p>lord</p></td><td class="cell"><p>sus</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>soon</p></td><td class="cell"><p>odee</p></td><td class="cell"><p></p></td><td class="cell"><p>mike</p></td><td class="cell"><p>sleepy</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>stuff</p></td><td class="cell"><p>wack</p></td><td class="cell"><p></p></td><td class="cell"><p>three</p></td><td class="cell"><p>hunni</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>canes</p></td><td class="cell"><p>nigga</p></td><td class="cell"><p></p></td><td class="cell"><p>agreed</p></td><td class="cell"><p>sick</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="8" global="569"/><p>From Table 2 we can see that both algorithms do better on positive words (fewer words with reversed polarity)<footnote anchor="11"/>, and that the Web algorithm is more accu­rate than the Reviews method. The difference in per­formance can be explained by the associations used by the algorithms. The Web algorithm takes into ac­count the strongest path to <i>every </i>seed word, while the Reviews algorithm propagates from the each seed to its neighbors and then onward. This makes the Reviews algorithm sensitive to strong associa­tions between a word and a single seed. Because our graph is constructed with co-occurrence edges be­tween words, rather than syntactic relations between adjectives, noisy edges are introduced, causing mis­taken associations. The Web algorithm, on the other hand, finds words that have a strong association with the positive or negative seed group as a whole, thus making it more robust. This explains some of the ex­amples in Table 3. The words <i>yeah </i>and <i>yea, </i>which often follow the negative seed word <i>hell, </i>are consid­ered negative by the Reviews algorithm. The word <i>Justin </i>refers to Justin Beiber, and is closely associ­ated with the positive seed word <i>love. </i>Although the Web algorithm is more robust to associations with a single seed, it still misclassifies the word <i>holy </i>as negative, presumably because it appears frequently before several different expletives.</p><p>Detailed analysis shows that the numbers reported in Table 2 are only rough estimates of performance. For instance, several of the words in the <i>unknown </i>category were correctly identified by the algorithm. Examples include <i>sm(f)h, </i>which stands for <i>"shak­ing my (fucking) head" </i>and expresses disgust or dis­dain, sus, which is short for <i>suspicious </i>(as in <i>"i hate susssss ass cars that follow me/us when i'm/we walk-inggg"), </i>and <i>odee, </i>which means <i>overdose </i>and is usually negative (though it does not always refers to drugs, and is sometimes used as an intensifier, e.g., <i>"aint shit on tv odee bored").</i></p><p>There were also cases were the human labels were incorrect in the context of our domain. For exam­ple, the word <i>bull </i>is listed as positive in the sen­timent lexicon, presumably because of its financial sense. In our domain it is (usually) short for <i>bull­shit. </i>The word <i>canes </i>was rated as negative by one of the annotators, but in our data it refers to the Miami Hurricanes, who won a game on the day our dataset was sampled, and were the subject of many posi­tive tweets. This example also demonstrates that our method is capable of detecting terms which are asso­ciated with sentiment at different time points, some­thing that is not possible with a fixed lexicon.</p><footnote label="11">This trend is not apparent from the top 15 results presented in Table 3, but becomes noticeable when considering the larger group.</footnote></subsection></section><section number="7" title="Conclusion"><p>In this paper we explored the phenomenon oflength-ening words by repeating a single letter. We showed that this is a common phenomenon in Twitter, oc­curring in one of every six tweets, on average, in our dataset. Correctly detecting these cases is important for comprehensive coverage. We also demonstrated that lengthening is not arbitrary, and is often used with subjective words, presumably to emphasize the sentiment they convey. This finding leads us to de­velop an unsupervised method based on lengthening for detecting new sentiment bearing words that are not in the existing lexicon, and discovering their po­larity. In the rapidly-changing domain of microblog-ging and net-speak, such a method is essential for up-to-date sentiment detection.</p></section><section number="8" title="Future Work"><p>This paper examined one aspect of the lengthening phenomenon. There are other aspects of lengthen­ing that merit research, such as the connection be­tween the amount of lengthening and the strength of emphasis in individual instances of a word. In addi­tion to sentiment-bearing words, we saw other word classes that were commonly lengthened, including intensifiers (e.g., <i>very, so, odee), </i>and named enti­ties associated with sentiment (e.g., <i>Justin, 'Canes). </i>These present interesting targets for further study. Also, in this work we focused on data in English, and it would be interesting to examine the phe­nomenon in other languages. Another direction of research is the connection between lengthening and other orthographic conventions associated with sen­timent and emphasis, such as emoticons, punctua­tion, and capitalization. Finally, we plan to integrate lengthening and its related phenomena into an accu­rate, Twitter-specific, sentiment classifier.</p><page local="9" global="570"/></section><section title="Acknowledgements"><p>The authors would like to thank Paul Kantor and Mor Naaman for their support and assistance in this project. We would also like to thank Mark Steedman for his help, and the anonymous reviewers for their comments and suggestions.</p></section><references><p>Barbosa, Luciano and Junlan Feng. 2010. Robust sentiment detection on twitter from biased and noisy data. In Chu-Ren Huang and Dan Jurafsky, editors, <i>COLING (Posters). </i>Chinese Information Processing Society of China, pages 36-44.</p><p>Bermingham, Adam and Alan F. Smeaton. 2010. Classifying sentiment in microblogs: is brevity an advantage? In <i>Proceedings of the 19th ACM in­ternational conference on Information and knowl­edge management. </i>ACM, New York, NY, USA, CIKM '10, pages 1833-1836.</p><p>Bolinger, Dwight. 1965. <i>Forms of English: Accent, Morpheme, Order. </i>Harvard University Press, Cambridge, Massachusetts, USA.</p><p>Bollen, J., H. Mao, and X.-J. Zeng. 2010. Twitter mood predicts the stock market. <i>ArXiv e-prints </i>.</p><p>Bollen, Johan, Bruno Gonalves, Guangchen Ruan, and Huina Mao. 2011. Happiness is assortative in online social networks. <i>Artificial Life </i>0(0):1-15.</p><p>Brants, Thorsten and Alex Franz. 2006. Google web 1T 5-gram corpus, version 1.   Linguistic Data</p><p>Consortium, Catalog Number LDC2006T13.</p><p>Brody, Samuel and Noemie Elhadad. 2010. An un-supervised aspect-sentiment model for online re­views. In <i>Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the Association for Computational Linguistics (NAACL 2010). </i>ACL, Los Angeles, CA, pages 804-812.</p><p>Calhoun, Sasha. 2010. The centrality of metrical structure in signaling information structure: A probabilistic perspective. <i>Language </i>86:1—42.</p><p>Diakopoulos, Nicholas A. and David A. Shamma. 2010. Characterizing debate performance via ag­gregated twitter sentiment. In <i>Proceedings of the 28th international conference on Human fac-</i> <i>tors in computing systems.</i><i> </i>ACM, New York, NY, USA, CHI '10, pages 1195-1198.</p><p>Grinter, Rebecca and Margery Eldridge. 2003. Wan2tlk?: everyday text messaging. In <i>Proceed­ings of the SIGCHI conference on Human fac­tors in computing systems. </i>ACM, New York, NY, USA, CHI '03, pages 441-448.</p><p>Kivran-Swaine, Funda and Mor Naaman. 2011. Network properties and social sharing of emo­tions in social awareness streams. In <i>Proceed­ings of the 2011 ACM Conference on Com­puter Supported Cooperative Work (CSCW2011). </i>Hangzhou, China.</p><p>McNair, D. M., M. Lorr, and L. F. Droppleman. 1971. <i>Profile of Mood States (POMS). </i>Educa­tional and Industrial Testing Service.</p><p>O'Connor, Brendan, Ramnath Balasubramanyan, Bryan R. Routledge, and Noah A. Smith. 2010. From tweets to polls: Linking text sentiment to public opinion time series. In <i>Proceedings ofthe International AAAI Conference on Weblogs and Social Media.</i></p><p>Pak, Alexander and Patrick Paroubek. 2010. Twit­ter as a corpus for sentiment analysis and opinion mining. In <i>Proceedings ofthe Seventh conference on International Language Resources and Evalu­ation (LREC'10). </i>ELRA, Valletta, Malta.</p><p>Velikovich, Leonid, Sasha Blair-Goldensohn, Kerry Hannan, and Ryan McDonald. 2010. The via­bility of web-derived polarity lexicons. In <i>Hu­man Language Technologies: The 2010 Annual Conference ofthe North American Chapter ofthe Association for Computational Linguistics. </i>ACL, Stroudsburg, PA, USA, HLT '10, pages 777-785.</p><p>Wilson, Theresa, Janyce Wiebe, and Paul Hoffmann. 2005. Recognizing contextual polarity in phrase­level sentiment analysis. In <i>Proceedings ofthe conference on Human Language Technology and Empirical Methods in Natural Language Process­</i>ing. ACL, Stroudsburg, PA, USA, HLT '05, pages 347-354.</p><p>Zhu, X. and Z. Ghahramani. 2002. Learning from labeled and unlabeled data with label propagation.</p><p>Technical report, CMU-CALD-02.</p></references></body></article>