<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sujoy Chaudhuri on Medium]]></title>
        <description><![CDATA[Stories by Sujoy Chaudhuri on Medium]]></description>
        <link>https://medium.com/@SujoyChaudhuri?source=rss-fa1855450d1c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vX2enfgjpFuayGa2.jpeg</url>
            <title>Stories by Sujoy Chaudhuri on Medium</title>
            <link>https://medium.com/@SujoyChaudhuri?source=rss-fa1855450d1c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 06:05:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SujoyChaudhuri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Doublespeak]]></title>
            <link>https://medium.com/i-love-charts/doublespeak-188a40a9f544?source=rss-fa1855450d1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/188a40a9f544</guid>
            <dc:creator><![CDATA[Sujoy Chaudhuri]]></dc:creator>
            <pubDate>Wed, 23 Apr 2014 08:15:08 GMT</pubDate>
            <atom:updated>2014-04-23T08:15:48.506Z</atom:updated>
            <content:encoded><![CDATA[<h4>Using text network analysis to compare the 2014 political manifestos of the BJP, INC and AAP in India</h4><blockquote><a href="http://en.wikipedia.org/wiki/Doublespeak"><strong>Doublespeak</strong></a><strong> </strong>is language that deliberately disguises, distorts, or reverses the <a href="http://en.wikipedia.org/wiki/Meaning_%28linguistics%29">meaning</a> of words… [<em>it</em>] is most closely associated with political language.</blockquote><p>In continuing with the idea of using open source tools for data analysis, (see <a href="https://medium.com/map-love/8c3559dc2eef">Open Data Hacking</a>), here’s a look at the 2014 Manifestos of three political parties in India using <a href="http://networkx.github.io/">NetworkX</a> and <a href="http://www.clips.ua.ac.be/pattern">Pattern</a> in <a href="http://python.org/">Python</a>. As always, the data has been visualised using the venerable <a href="http://d3js.org/">d3.js</a>, into an interface with which you can interact <a href="http://ooquant.com/gov/manifestos?p=inc">here</a>.</p><p>The idea of using graph theory for text analysis came from two incredible blog posts — one by Seth Long on <a href="http://technaverbascripta.wordpress.com/">Technaverbascripta</a> and the other from <a href="http://noduslabs.com/research/pathways-meaning-circulation-text-network-analysis/">Nodus Labs</a>. Seth describes it best, so I will quote him verbatim here:</p><blockquote>As applied to writing studies, text network analysis (TNA) is a method by which a researcher can trace the circulation of meaning within a text… Any text will draw upon many systems to create meaning: syntactic, graphemic, cultural, et cetera. TNA is all about teasing apart the different strands to discover what is connected to what, and to see where the clusters and paths of meaning lie. With it, we can also follow the path of a specific word or idea, and locate its place within a larger network of words or ideas.</blockquote><p><a href="http://en.wikipedia.org/wiki/Collocation">Collocation</a>, at it’s simplest, is the co-occurrence of terms in a body of text, of which there are six main types: adjective-noun, noun-noun, verb-noun, adverb-adjective, verb-adverb and verbs-prepositional phrase. Because we’re dealing with political manifestos here, I picked verb-noun collocations to explore how meaning circulates within each document — essentially to look at <em>how</em> each political party intends to do <em>what</em> they promise to do.</p><p>Manifestos of the Indian National Congress (<a href="http://www.inc.in/">INC</a>), Bharatiya Janata Party (<a href="http://www.bjp.org/">BJP</a>) and the Aam Aadmi Party (<a href="http://www.aamaadmiparty.org/">AAP</a>) were downloaded as pdfs and converted to text for analysis in Pattern. Sentences were extracted, stopwords removed and each word/phrase tagged to it’s relevant part-of-speech using pattern.en’s POS tagger. Using a 3-word gap scan, a small python script then connects co-occurrences of all nouns (intentions) + verbs (methods) to convert the text into graph data.</p><p>Now that the data can be visualised, we can play with it! Here’s what each party’s manifesto looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*rSjnSue12TnXeMi6oyEcqg.png" /><figcaption>Verb-noun co-occurrence networks in the 2014 manifestos of three political parties of India.</figcaption></figure><p>Note that each network is distinct — and that the AAP manifesto appears much less connected than either the INC’s or BJP’s. Here’s a look at top word links sorted by frequency:</p><blockquote><strong>INC </strong>ensure-implementation, strengthen-implementation, increase-expenditure, increase-health, provide-impetus, mobilise-support, enact-legislation</blockquote><blockquote><strong>BJP </strong>encourage-industry, address-issue, open-government, increase-access, improve-quality, create-ecosystem</blockquote><blockquote><strong>AAP </strong>have-access, prevent-escalation, improve-condition, curb-economy</blockquote><p>Node (word) size could be determined by it’s degree — the number of links pointing-to or emerging-from each verb or noun in the network — or, more simply, the frequency of occurrence. Using this measure, even with this low resolution image, the most common word across the manifestos — ENSURE — is evident. Here are the five most common words by usage in each manifesto:</p><blockquote><strong>INC</strong> ensure, provide, increase, improve, access</blockquote><blockquote><strong>BJP</strong> ensure, make, promote, create, strengthen</blockquote><blockquote><strong>AAP</strong> ensure, improve, end, reduce, prevent</blockquote><p>But the differences are also apparent — the INC promises to <em>provide </em>and<em> increase, </em>but the BJP promises to <em>make</em> and <em>promote,</em> while the AAP promises to <em>improve </em>and <em>end</em>.</p><p>Because each manifesto is now a network however, we can tease out more information than simple frequency counts. If we look at <em>what</em> each party most commonly refers to, meaning circulates differently:</p><blockquote><strong>INC</strong> access, quality, focus, development, money</blockquote><blockquote><strong>BJP</strong> government, youth, role, industry, system</blockquote><blockquote><strong>AAP</strong> corruption, education, use, infrastructure, government</blockquote><p>Again, the differences are apparent — the INC refers to <em>access</em>, the BJP to <em>government</em> and AAP to <em>corruption </em>— as expected, because these are the major planks that each election campaign is being run on.</p><p>Following <a href="http://noduslabs.com/research/pathways-meaning-circulation-text-network-analysis/">Paranyushkin</a>, the most important <em>junctions</em> for meaning circulation within each manifesto can be identified by placing emphasis on words with the highest <a href="http://en.wikipedia.org/wiki/Betweenness_centrality">betweenness centrality</a>. Using this measure, here is how meaning circulates within each manifesto:</p><blockquote><strong>INC</strong> focus, support, work, spend, fund</blockquote><blockquote><strong>BJP</strong> build, change, support, defence, time</blockquote><blockquote><strong>AAP</strong> end, secure, face, work, representativeness</blockquote><p>Again, the differences are interesting — <em>defence</em>, for instance is something the BJP believes is more critical to India’s future than either the AAP or INC (if you want to see how often India’s electorate identified defence as an issue with high importance, click <a href="http://ooquant.com/gov/perception?q=StrongMilitary">here</a>).</p><p>There’s a lot more that can be extracted from this data — and because data should always be open, you can download the network files in json format suitable for visualisation in <a href="http://d3js.org/">d3.js</a> here:</p><ul><li><a href="http://ooquant.com/gov/data/cong_nnvb.json">Indian National Congress</a></li><li><a href="http://ooquant.com/gov/data/bjp_nnvb.json">Bharatiya Janata Party</a></li><li><a href="http://ooquant.com/gov/data/aap_nnvb.json">Aam Aadmi Party</a></li></ul><p>You can also just start a discussion within the <a href="http://ooquant.com/gov/manifestos?p=bjp">interactive UI</a> (scroll to the bottom of the page) or get me on <a href="https://twitter.com/SujoyChaudhuri">Twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=188a40a9f544" width="1" height="1" alt=""><hr><p><a href="https://medium.com/i-love-charts/doublespeak-188a40a9f544">Doublespeak</a> was originally published in <a href="https://medium.com/i-love-charts">I Love Charts</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Data Hacking]]></title>
            <link>https://medium.com/@SujoyChaudhuri/open-data-hacking-8c3559dc2eef?source=rss-fa1855450d1c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c3559dc2eef</guid>
            <dc:creator><![CDATA[Sujoy Chaudhuri]]></dc:creator>
            <pubDate>Thu, 17 Apr 2014 12:28:36 GMT</pubDate>
            <atom:updated>2014-04-18T08:57:01.660Z</atom:updated>
            <content:encoded><![CDATA[<h4>Visualising India’s Electorate</h4><p>The largest democratic exercise in the world has been coinciding nicely with the increasing availability of open, raw data. Some of you may have seen the <a href="http://ibnlive.in.com/general-elections-2014/analytics/">Election Analytics Centre</a> by IBN and Microsoft. This piece is about using open data to create something similar.</p><p>Over the past month, <a href="https://github.com/datameet">DataMeet</a>, a community of data science enthusiasts, has curated a fantastic dataset of India’s elections from various data sources, including the <a href="http://eci.nic.in/">Election Commission of India</a>, the <a href="http://adrindia.org/">Association of Democratic Reforms</a> and <a href="http://dakshindia.org/">Daksh</a>.</p><p>The ADR-Daksh Survey of Voter Perceptions, covering ~300,000 participants from 480 constituencies (available <a href="https://github.com/datameet/daksh/blob/master/voterperception/daksh_2014.zip">here</a>), asked participants to scale thirty issues — ranging from Corruption to Women’s Empowerment — on an importance scale (High, Medium &amp; Low). This dataset was mapped to a shapefile of India’s Parliamentary Constituencies, and converted to topojson using Fiona and Shapely, which you can <a href="http://ooquant.com/gov/perception?q=Gender%20Ratio">interact with here</a> or <a href="http://ooquant.com/data/indiapc_daksh.json">download</a> to hack yourself.</p><p>The data presented on the interactive view (and in the download), will be different than can be seen on either the Daksh or ADR sites — the original authors averaged and scored the High-Medium-Low scale to a numeric scale ranging from 1 to 10. In these pages, you will see only the percentage of the electorate that rated issues with High Importance. The idea is to look at what is on “top-of-mind” across the electorate. I had reasons to do this — but will leave explanations for another post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gzy0XUoz08sOXg2EsjVEig.png" /><figcaption>An interactive, map-based exploration interface for the ADR-Daksh Voter Perception Survey</figcaption></figure><p>Give the interface some time to load — once it does, explore the interface by hovering/clicking/tapping on the map. Change the colours on the choropleth using the drop-down to select one of 30 issues the survey covered. The interface should allow quick views of how voter perceptions of any one issue are clustered across the country. See for instance, what percentage of the electorate thinks <a href="http://ooquant.com/gov/perception?q=Corruption">Corruption</a> or <a href="http://ooquant.com/gov/perception?q=EmploymentOpportunities">Employment Opportunities</a> are of High Importance.</p><p>Hovering/clicking on the map will throw up an information tile, so you can explore data at the level of the state and constituency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*n7F0HDYhkC9ydwOEYLd0xw.png" /><figcaption>Zooming in to the details</figcaption></figure><p>The image here, for instance, shows data for the Ahmedabad (East) constituency. You can see the size of the electorate, gender ratios and all 30 ADR-Daksh survey issues plotted as circles.</p><p>The issue most of the survey participants flagged with HIGH IMPORTANCE (and the percent of respondents) is also shown. Note that all issues (circles) in this constituency cluster close together.</p><p>A bar chart shows the frequency distribution of respondents across the country. The orange line represents the Kernel Density Estimate (KDE) of the National sample and the white line the KDE of the state — so you can see that Employment Opportunities are of greater concern to voters in Gujarat compared to the overall distribution for India.</p><p>Explore the <a href="http://ooquant.com/gov/perception?q=Gender%20Ratio">interface</a>. Feedback welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c3559dc2eef" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>